Set-Location C:\Users\admin New-ItemProperty -Path NewSoftware -Name mode -Value "Service" Set-Location HKLM:\SOFTWARE Get-ItemProperty -path NewSoftware Set-ItemProperty -Path NewSoftware -Name mode -Value "Application" Remove-Item NewSoftware Get-Module -ListAvailable Import-Module SqlServer Set-ExecutionPolicy RemoteSigned Get-PSProvider Set-Location SQLSERVER:\SQL\DESKTOP-VNM5DM7\Default\Databases Set-Location SQLSERVER:\SQL\DESKTOP-VNM5DM7 New-Item testowabaza Invoke-SqlCmd "create database testdb" Remove-module SQLSERVER New-PSDrive Scripts filesystem C:\Users cd Scripts: Remove-PSDrive Scripts hostname Get-Command -module sqlserver ls 'c:\program files\WindowsPowerShell\Modules" Uninstall-Module SqlServer Remove-Module SqlServer