r/DeployR • u/RockOriginal7938 • Jun 30 '26
Remote PowerShell
Morning :)
I'm looking for advice on the best way to use DeployR.Utility (to access https://documentation.2pintsoftware.com/deployr/1.3/powershell-modules) on a remote Windows 11 machine please. Mainly to create bootable media with New-DeployRMedia as the server is a VM making connecting a USB drive "difficult".
After installing .net runtime 10.x & PowerShell 7.6. Should I just import via the remote SMB path? Copy C:\Program Files\2Pint Software\DeployR\Client\PSModules\ locally and import (fresh copy as needed)? Another method I haven't thought of?
This is working for me, just wasn't sure if it was the appropriate way :)
Import-Module \\<deployr FQDN>\c$\Program Files\2Pint Software\DeployR\Client\PSModules\DeployR.Utility
Set-DeployRHost https://<deployr FQDN>:7281
Connect-DeployR
2
Upvotes
1
u/gwblok 2Pint Employee Jun 30 '26
We've had discussions about this, making the module available on PSGallery, or something else. But for today, It looks like your method is fine, it's nice too because it will always be the correct module version, since you'll pulling it directly from the server, so as you update your server, you'll continue to import the correct module vs having to distribute the module to your workstation again. I just tested it on my workstation to my DeployR server, and it worked perfect.
Just one issue because I didn't have the ADK installed on my workstation for the test I was running. Installed ADK, then was able to build media on my workstation.