About 394 results
Open links in new tab
  1. Create install.bat File to run Powershell script

    Also if the purpose of batch file is just triggering of PowerShell script than you can create a shortcut with a target like this: powershell -file D:\scripts\myscripts\connect.ps1 Configure the shortcut to run as …

  2. How do I make a script "Run as administrator" on its own?

    2) I must always run my scripts by right clicking to the context menu and clicking "Run As Administrator" 3) I learn if there is a way for my script to "Run As Administrator" on its own

  3. Calling a CMD Shell variable from PS Shell

    Oct 25, 2013 · I want to run this batch as administrator. It works fine when UAC disabled. But when UAC enabled I can not run PS script. Because PS script needs administrator privileges. And because of …

  4. User profile migration from one File Server to another.

    1. Run powershell script I wrote to take ownership of the profile files, give me full access to the profile files, fix profile permissions to reflect proper user permissions, move them to the new location, …

  5. Using Powershell to add local administrators USING local administrator ...

    Jul 23, 2012 · My objective is to use a powershell script to add an ID from ADUC, to the local administrator group on a host name, but use the Local Administrator credentials to that specific host …

  6. Get-WmiObject returns null for certain classes in the "root ...

    Yikes, this appears to be a permissions issue. I thought I had checked this earlier but apparently I missed it. If I run Powershell as Administrator, it works fine :) Looking around the web for information …

  7. Powershell is not recognizing functions within the script

    All of those registry settings are the defaults for PowerShell., They are usually managed by Group Policy and are not required to use PowerShell. YOu need to back up and get the basics.

  8. Run Blat from Powershell in Task Scheduler

    I am running windows 7 and have a script that includes a blat command. It works fine when run manually but won’t send the email when setup in a scheduled task.

  9. How does a Powershell Script execute from the Startup folder in the …

    My objective is to run a Powershell Script as a startup script in a GPO and set the SACL on a file for auditing purposes. I do not want the script to reside on the local file system of each server it will …

  10. Configuring SharePoint through PowerShell

    Why are you using the Online Management Shell, which is meant for use with Office 365 with SharePoint 2013? For on-premises PowerShell you need to use the SharePoint Management Shell …