Skip to content

Run Powershell Script - parameters with spaces

Featured Replies

Can anyone tell me what is the proper way to include parameters with spaces on a "Run Powershell Script" step in a task sequence? I haven't been able to find the answer anywhere and I haven't had any luck with any combinations I've tried. My script requires 2 mandatory parameters and one or both may have spaces in them. I tried to put the parameters with spaces inside of quotes. I tried to double quote. What is the official way to do it?

 

TIA,

Ben

  • 4 years later...

For variables with spaces you must use 3 double quotes on either side

image.png.7eda8194a0bbb225ef2c746a57c3eb41.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.