Skip to content

File path when copying files using Run Powershell Script TS

Featured Replies

Trying to copy over two small files inside of my package containing my PS script that stops services, updates a couple reg entries, etc. Could not find any info on what to set the path to inside of the script so I can copy the files in the package to the correct directories.

 

Copy-Item -Path "testfile.txt" -Destination "\\$computername\c$\apps\testfile.txt" -ErrorAction Ignore

 

Thanks

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.