AppFabricCachingService DOWN on 1/4 Caching Host
Good Afternoon,Running AppFabric farm with SQL on 4 2008 R2 servers. Unable to get 1/4 servers to come up when issuing Start-CacheCluster PS command.Ports are open between these servers. I've tried...
View ArticleQuery DNS secondary zone for Master servers
Is there a way via PowerShell to query a DNS secondary zone and return the list of Master Servers? I guess I'm essentially looking for a Get equivalent of Add-DnsServerSecondaryZone but that doesn't...
View ArticlePowershell command to 'refresh' a virtual switch extension manager.
Hi. I'm working on integrating Cisco's Nexus 1000v (N1KV) virtual switch with Hyper-V. After I configure the N1KV, I have to manually refresh the corresponding virtual switch extension manager on...
View ArticleOpen network folder
I got the folder open when I ran Start '\\PCName\c$\Users' But I got error when I ran$a = 'PCName'Start '\\' + $a + '\c$\Users'The error isStart-Process : A positional parameter cannot be found that...
View ArticleQuery failover cluster via powershell to obtain virtual machine operating system
Looking at the 'roles' in 2012 failover cluster manager shows a field 'operating system'I'd like to query this via powershell - I'm thinking get-clusterresource is the way to go but I'm looking for...
View ArticleDownload multiple files simultanously using an access database as url source?
I have an access database with a bunch of url's that points to images. What i want to do is to create a script that goes through my database and downloads all of the images simultanously.I have tried...
View ArticleExporting Group Policy Settings into Excel - Help Needed!!!
All, I have installed Microsoft GPMC Sample Scripts and used the command "cscript GetReportsAllGPOs.wsf" to get all the lists of GPOs in our domain. As you all know, the above command exports all GPO...
View ArticleNeed help with PS Script to add Computers to Groups based on Computer...
Hi all,I'm looking for an alternative way to write my script to add any computer matching a filter, then adding a computer based on it's description, to a security group. All the computers that start...
View ArticlePowershell Scripting Question
Hello all,I have a script that actually runs perfectly fine, but I did notice - after extensive testing - that when I add a wmic command inside my script to perform an uninstall, everything works as...
View ArticleSome Storage CMDLets do not work under WinPE
I have built a custom WinPE based on W2012 and included Powershell and a number of the Powershell CMDLets such as SMB, DISM, and Storage. Everything works fine. When you boot the WinPE disk and do a...
View Articleadd a progress bar for each file downloaded
Im downloading a bunch of files using the webclient downloadfileasync method. The url soruce is an access database. I got some really good help doing it in this thread.The progress bar idea is stolen...
View ArticleHow to get Attachment details using powershell cmdlets
Is it possible to get attachment name,size etc of a mail item in the mailbox by using powershell cmdlets ???
View ArticleAdd newline after a specified line
Hi Good Day How i can search in alot of files and add new line after a specified content ..
View ArticleHow can I add a blank line to a text file using PowerShell?
The TechNet article seems straightforward - use Add-Content <filename> and put `n at the end of your string to add an extra line. (http://technet.microsoft.com/en-us/library/ee156791.aspx)I've...
View ArticleCheck Whether drive exists
function get-checkdrive($server) { write-verbose "check drive -started" $check= 'D:\' # no escape $testobj=get-wmiobject win32_volume -filter "DriveLetter= 'D:'" -computername $server $caption=...
View ArticleStart-BitsTransfer Works when triggered manually from powershell but not...
I'm using BITS to transfer file from one windows 2008 R2 server to the other. When I run the command manually from powershell or regular command line it works perfectly. Now when I use the same...
View Articlealternative way to map a drive letter to a shared folder
Unfortunately none of the above meets my case and it gets more puzzling as I go forward. Our office does not have a Domain, just a plain Workgroup. We have two Servers, one 2008 R1 one 2008...
View ArticleCompressing Log Files from Multiple Sources?
I need some help with a problem I'm facing at work. I've been tasked with developing a script to take video files older than a day stored from multiple directories and placing them in zipped folders...
View ArticlePass Complex types as parameter in Remote powershell execution
Hi I am trying to pass a parameter to a remote script with an invoke-command. If i run the invoke command with the script in the local computer it´s works, but when i call the invoke-command with...
View ArticleCompare-object then conpare date modified
Hi,I am comparing 2 folders and copying the different files. Unfortunately I have some files (after a specific date) that I don't want to copy. Can I exclude these files using date modified property?...
View Article