Introduction In this post, I will demonstrate how to do a simple but useful scenario when managing Azure Machine Learning Workspaces and Experiments, copying all the experiments under one workspace, deploy a new workspace using ARM (Azure Resource Manager) in another region, and then copy the experiment under the newly deployed workspace. Preparation You will… Read More »
I’m generally a huge fan of security features, as long as they don’t go in my way. Today, the PS execution policy actually came in my way, so a quick way to remove it is here: Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser Use it at your own risk, this will remove the execution policy security for… Read More »
I had to use a tool today that gave me a frustrating error: “your csv file have more than a 1000 rows”. I had multiple CSVs that had more than 1000’s of rows actually, so splitting it manually would have been a total waste of time and sanity. That’s where PowerShell came in handy. As… Read More »
Changing a service startup type can be crucial after installing or configuring the service. PowerShell comes with an easy way to do so: Set-Service –Name theservice –Computer thecomputer –StartupType “selectedType” Where selectedType value can be: Automatic Manual Disabled Unfortunately, there is no support for the automatic (delayed start). To support the automatic (delayed start), you… Read More »
An easy trick but often helpful in need of automation. I recently noticed that it was not possible to do: Start-Service –Name theservice –Computer thecomputer Instead we have to follow this rather ugly way: (Get-WmiObject -computerName thecomputer Win32_Service -Filter “Name=’theservice'”).StartService() To stop the service, same idea: (Get-WmiObject -computerName thecomputer Win32_Service -Filter “Name=’theservice'”).StopService() 0 Kudos… Read More »
Below code can be handy if you need to create a powershell session under a different credential than the one you are logged into. This allow to support multiple scenarios: Test role base access control Increase privilege for important operation [powershell] # Avoid displaying the UI prompt when creating credential object Set-ItemProperty ‘HKLM:\SOFTWARE\Microsoft\PowerShell\1\ShellIds’ ConsolePrompting $true… Read More »
Just found a free eBook on PowerShell, I have downloaded it here: Effective PowerShell. PowerShell is a new recent command line shell and scripting language from Microsoft, the V2 CTP3 is available to download. Have fun 🙂 Ahmet 0 Kudos Don'tmove!