-
We have code that invokes the "Sync" VERB for a folder that has been made available Offline via Offline Files. We basically achieve this by using Shell32 to programmatically invoke the Sync option available in the right click menu of a folder (context menu). The code is simple and works in...
-
Any idea how to invoke verbs that are in a sub menus like the Sync for Offline Files in Windows 7 ("Sync > Sync selected offline files")? This option is available once the folder/file has been made Available Offline. For more details about my question see this thread http://powershell.com...
-
If you are familiar with EMC solutions enabler (which provides DOS command-like commands) like symcfg list, which outputs a list of the emc storage arrays located in a particular site by firmware code version, etc., or symsnap -sid 2045 list -pools -gb, I have created several symcli commands which I...
-
Hello I have an Infopath Doc that is stored as XML on our SP farm, I am trying to access certain information in the infopath form to assign as a variable for use in creating folder structures and websites. That is not too hard when dealing with clearly named elements in the xml doc, however on large...
-
Hi, inspired by recent blog entries I was trying to create an XML configuration file for a powershell script. Goal: store the last date&time the script was successfully run and other run-time related information. solution idea: <?xml version="1.0" encoding="utf-8"?> <config>...
-
One can get the value of a scalar variable the name of which is stored in another variable: PS H:\ps\fullLoad> $a="aaaaa" PS H:\ps\fullLoad> $b="a" PS H:\ps\fullLoad> get-variable $b -valueOnly aaaaa The same approach however does not allow me to get the value of an element...
-
Hi All, Hopeing someone can point me into the right direction here. I have a WCF service someone created that is hosted as a Windows Service. The binding is tcp/ip. Using PowerShell are there any examples how I can bind to this service, generate the proxy to call into it's methods? The only one coming...
-
Hello ! I've made a script that checks MSClusters' status remotely, using WMI. I have upgraded to POSH v2 to include 'Autentication PacketPrivacy', and it all works perfectly. My query does return the expected results, however my queries keep creating an error msg on the remote servers...
-
how to get this simpel script to run $remotePCName = Gc "C:\script\computers.txt" $remoteRoot = “\\$remotePCName\f” $Location = $remoteRoot Copy-Item "c:\vmware” $Location -recurse -force if Copy-Item fail <-------this is my problem Write-Output "$remotePCName"...
-
Hi! I am trying to create a script in Powershell 2.0 which is using an API via a COM object. The object is created fine, but when i try to call a spesific method on this object it returns the following error: The method returned a COM Variant type that is not Interop compatible This method is supposed...