- 1 year ago
Running set-physicalDisk command in powershell without admin user
Running the Set-PhysicalDisk
command in PowerShell typically requires administrative privileges because it involves modifying the configuration of physical disks on the system. Without administrative privileges, you may not have the necessary permissions to make changes to the disk configuration.
If you need to run Set-PhysicalDisk
without an admin user, you can try the following options:
Run PowerShell as an Administrator: Launch PowerShell with administrative privileges by right-clicking on the PowerShell shortcut and selecting "Run as administrator". This allows you to execute the
Set-PhysicalDisk
command with the required permissions.Use PowerShell Remoting: If you have access to a remote machine where you have administrative privileges, you can use PowerShell remoting to connect to that machine and run the
Set-PhysicalDisk
command with administrative rights.Request Elevated Privileges: If you have control over the system's Group Policy settings, you can modify the User Account Control (UAC) settings to prompt for elevated privileges when running PowerShell scripts. However, this requires administrative access or assistance from an administrator.
Contact System Administrator: If you are working in a controlled environment, contact your system administrator and request the necessary permissions or assistance to run the
Set-PhysicalDisk
command.
It's important to note that modifying disk configurations can have significant impacts on the system's functionality and data integrity. Exercise caution and ensure that you have the appropriate permissions and knowledge before making any changes to disk configurations.