Powershell install via SMS



  • 1. Sql scripts
    Just looking for examples of what people have been doing using PS and Sql2005 Backups Maint Thanks.
  • 2. Help with file??
    I've taken over modifying an existing file, and being new to PowerShell, am having some problems. The code is: function copyfrom-shares ( $target ) { Set-Location -Path $target new-item -path "Your choice" -type folder -name "Backups" foreach ($i in gci){Copy-Item $i -Destination "\\matterhorn\backups$\" } #Send-SmtpMail -To XXXX@XXXXX.COM -From XXXX@XXXXX.COM -SubjectSuccess -Body "Files all copied OK" } #region <1> Define your shares here [array]$script:shares = "\\k2\dept$\OST" $shares += "\\k2\dept$\ED" $shares += "\\k2\dept$\Fiscal" #endregion #region <2> Pass the shares array to the function, one share at a time. $shares | % { copyfrom-shares -target $_ } #endregion What i would LIKE to have happen is in each of the shares is to copy all the files AND the subdirectories in each share. Also, is there a way to have PowerShell check the date/time/modified (file attributes) of each file and only copy ones that have changed? So, if they're newer on the share, copy them to the destination. If the destination has the same file attributes, don't copy it from the share? Thanks!!! Steve
  • 3. Getting information from Exchange Server 2007
    Hi All I wish to interrogate Exchange Server 2007 from a remote monitoring server. However, I don't want to install the Exchange Management Tools in order to do this. The reason is that installing about 400MB of stuff to do a simple query seems like overkill. Also, I don't want to install unnecessary software onto a server. After spending half a day googling (sorry MS) I haven't found a solution. I did come across references to ADSI, but they were for previous versions of Exchange, and not clear enough for me to understand. Also some references to WMI. It's a pity that MS don't supply the Exchange Management Shell as a standalone snap-in for Powershell. Basically I'm after a simple method for: * Getting a list of mailboxes * Reading properties for a particular mailbox My current requirement is to get the PrimarySmtpAddress for a given mailbox. Thanks. altraf
  • 4. Question on 'if object exists' query with if-then
    New to powershell so don't know how to express this in the correct syntax: I want to check a query and if the object exists, then execute the else part. my query is: gwmi win32_NetworkAdapter | where {$_.netconnectionid -match "Enterprise"} | select Name So how do I basically say: $network = gwmi win32_NetworkAdapter | where {$_.netconnectionid -match "Enterprise"} | select Name if ($network existss) then <commands> endif Thanks, P.S. Any recommended books for someone versed in Perl on how to learn power shell?

Powershell install via SMS

Postby SGVjdG9ySVROVA » Fri, 14 Dec 2007 23:26:03 GMT

Should there be any concern, other than having .NET 2.0 installed, for 
pushing Powershell via SMS?

Re: Powershell install via SMS

Postby Marco Shaw [MVP] » Fri, 14 Dec 2007 23:45:34 GMT

A default PowerShell installation is pretty secure, so as long as users 
don't play with the executionpolicy in particular.

If you use Group Policy:


Microsoft MVP - Windows PowerShell

PowerGadgets MVP


Re: Powershell install via SMS

Postby SGVjdG9ySVROVA » Sat, 15 Dec 2007 00:04:01 GMT

The problem is we are locked from installing MS Updates on our desktops via 
policy.  So I was hoping to install Powershell on my team pc's via SMS.  I 
have downloaded the template and submitted it to the AD team for 
implementation, but I can't fine any reference on the net about "installing 
Powershell via SMS".
Any thoughts? 

Re: Powershell install via SMS

Postby QnJ1bm8 » Sat, 05 Jan 2008 22:41:01 GMT

Installation is pretty simple:
type in WindowsXP-KB926139-x86-ENU.exe /? for more info.

Similar Threads:

1.SMS text messages to phone via powershell

Is it possible to send SMS text messages to mobile phone using powershell?
If yes, can someone please show the code? For example if i have Mobile phone 
attrtibute set for user in AD, can i use it to send text messages to him/her?

2.Can powershell use SMS (AS IN PHONE SMS TEXTING)

How can i use powershell to generate sms text and send to phone sms ?

I've never use SMS technology before, anyone can advise a typical simplifed 
infrastructure like ? 

3.SMS gateway software, SMS gateway, SMS software, SMS server, SMPP software, WAP Push

Return to powershell


Who is online

Users browsing this forum: No registered users and 60 guest