janhoedt
asked on
Powershell sccm: ip boundary in variable?
Hi,
How do I set an ip boundary variable in Powershell (what type or other config)?
If I do it like this, I get an error (sccm boundary config):
$Iprange = '192.168.1.100-192.168.1.2 00'
New-CMBoundary -type IPRange -Value $iprange -name "My IP range"
Works fine via New-CMBoundary -type IPRange -Value 192.168.1.100-192.168.1.20 0' -name "My IP range"
Thanks.
J.
How do I set an ip boundary variable in Powershell (what type or other config)?
If I do it like this, I get an error (sccm boundary config):
$Iprange = '192.168.1.100-192.168.1.2
New-CMBoundary -type IPRange -Value $iprange -name "My IP range"
Works fine via New-CMBoundary -type IPRange -Value 192.168.1.100-192.168.1.20
Thanks.
J.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.