Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Create shortcut using powershell

$
0
0

Hi,

Can anyone tell me a wat to create RDP shortcuts using powershell?

I have written a script for mountpoints where in it compares the mountpoints with the mounpoints in the text file

for Ex:-

 $volume= get-wmiObject -class win32_volume -computername $server | Where-object{$_.DriveLetter -eq $null} | select label, name, Freespace

$volume gives me C:\Yo-01

$test="C:\Y0-01"

if ($volume -contains $test)

{

return (Pass) } else {return (Fail)}

when i execute, i get pass not  Fail though the mountpoints names are different. And please let me know how to create shortcuts as well?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>