Digital Signatures on TechNet Gallery - thoughts?
I've recently obtained a code-signing certificate from DigiCert (who are awesome, and offer these certs for free to MVPs for personal use), and was thinking of going back and signing the various bits...
View ArticleFind module that contains function
Get-Command isn't doing what I expected...C:\Users\hxchba> get-command | where { $_.Name -Like “dh” } CommandType Name ModuleName ———– —- ———- Function dh...
View ArticleCloning objects in powershell
Hi Experts,I am trying trying to create two objects with similar properties. Everytime I try to do this, it seems I create a reference to previous object instead of creating a new one. See how the...
View ArticleWorking with files, who's paths are too long
Is there any way of getting around the dreaded errorGet-ChildItem : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the...
View ArticleHow to get all records using Invoke-webrequest?/Why Invoke-webrequest returns...
invoke-webrequest content returning only 2000 records though it has around 4000 records in web api. The same url if I give in excel oData Data feed I am getting all the records. See the below script...
View ArticleA big, and ... the infinity - THE GOOD AND ... THE UGLIEST
function f{begin{function f{begin{&$s}process{&$s}end{&$s}}&$s}process{f}end{&$s}} $s,$v={$script:v*=$v},2 $(1..2|f),$v,$($v=2) $(1..2|%{f}),$v• <-I have no time to waste.
View ArticleSwitch statement
HiI'm new to powershell, reading a book an trying to make sense of the switch statementUsing foreach I can get the desired result, which is to print the contents of a directory each item a different...
View ArticleA big, a very big and a huge 'big' number - THE GOOD, THE BAD AND THE UGLY
function f{begin{&$s}process{&$s}end{&$s}} $s,$v={$script:v*=$v},2 $(1..2|f),$v,$($v=2) $(1..2|%{f}),$v,$($v=2) $(1..3|%{f}),$v• <-I have no time to waste.
View ArticleAdding a Acceptance Transform Rule to existing Claims Provider Trust in ADFS 2.0
Hi,Using PowerShell, I am trying to add a new Acceptance Transform Rule to the existing Claims Provider Trust (named Active Directory). Please see the following screenshots, I am trying to add Rule 11...
View ArticleHiding password in the script
HiIs there a way of hiding password text in the script? If possible please provide different ways of doing it and with examples. Thanks!
View ArticleHow to union results in Powershell?
I am running two separate Invoke SQLcmd -Querys from powershell Both of them work individually, but when I put them together only the results of the first query appear. Is there a way to do it so that...
View ArticleNeed help about Invoke-Webrequest and Invoke-RestMethod commandlets
Invoke-webrequest content returning only 2000 records though it has around 4000 records in web api. If I give the same uri in excel oData Data feed I am getting all the records.Invoke-Restmethod also...
View ArticleRegex help
Hi, i hav a command that gets the ram memory of the servers in GB$RAM = Get-WMIObject -class Win32_PhysicalMemory -computername $server | Measure-Object -Property capacity -Sum | select @{N="Ram";...
View Articleremotely checking the server port is open or not
I have a project where i need to do the belowFrom ServerA telnet to mulitiple server on a specific port.ex:Source = Server ADestination = ServerB,ServerC,ServerD,ServerE Port = 80Usually i have to...
View Articleadd parm and more dynamic
How can I add the parm of userid password for machines that need SQL authenication. In the script it passes in Server now I want 2 other pieces a userid and password. If both blank use a trusted...
View Articlehow to exclude hidden NON_IPM_DATA mesages from ItemCount
Hello,When I run Get-Mailbox -Identity EmpUser01 | Get-MailboxFolderStatistcs | FT Identity, FolderPath, FolderSize, ItemsInFolderI get below results which does not match when I check the Item Count...
View Articlepowershell add url to intranet zone
HiI it possible using PowerShell to add an url to the Internet Explorer "Local Intranet"?Best regardsBjorn
View Article'Unshare' 100+ dead print queues
Hi thereI have been tasked with removing inactive/dead print queues from our print servers (Server 2008 R2). I have been pinging all IPs for the past month to get an idea of what is dead and what...
View Article64bit or 32bit Powershell
Hi there,is an information available which Powershell commands aren't working in 32bit Powershell or vice versa?Or which PSH modules are only working with 64bit Powershell or vice versa?I recognized...
View ArticleKicking off download and install Updates remotely
Hello,I know that in Windows 2012 you can launch sconfig and then run "Download and Install Updates" which I have found to be an extremely useful tool. Can I launch this (or a similiar) command...
View Article