get windows key
i'm new to powershell and am looking for a script that can be run remotely against a list of windows server 2008 64 bit, windows server R2 64bit.
View ArticlePowerShell Script for complete folder upload
twice a week a folder is generated with pdf files inside, each folder is named with an ID number(Ejm ID523869) and the .pdf files named with a serial number(ejm 22081300340), each time a new forder...
View ArticleExport list of Virtual Machines in Azure
Hi all, I'm trying to find a way to export to CSV a list of all VM's against my Azure subscription.<o:p></o:p>I seem to be going around in circles - some scripts look promising, some just...
View ArticleRun Test-ADServiceAccount at remote machine
I am getting error at windows server 2012. Unable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web Services...
View ArticleHow can I successfully run my remote script with administrator permissions?
up votdown votefavoriteI've been working on a small, redeployable .ps1 script that will be used to automate the clearing of the end user's print spooler and clearing of the printing queue, with more...
View ArticleHow do i search a file for keywords then if a keyword or words are not found...
heres a small code i got from google and have been playing with . i got list of name in a txt file and i run it againt a htm$key = Get-Content c:/users/jon/documents/t.htm Get-Content...
View ArticleWMI Logical FreeSpace and Size
I trying to run this command but free and size property is not showing anything.Get-WmiObject -Class Win32_logicaldisk -Filter 'drivetype = 3' | Select @{N='Free';Ex={'{0:N1}' -f $_.freespace /1gb...
View ArticleHow can I create registry key with slash in name?
I'm trying to create registry key as follows:New-Item -Path 'HKCU:\Software\VB and VBA Program Settings\Liaison 98\SitaHost\PC/PCM' New-Item -Path "HKCU:\Software\VB and VBA Program Settings\Liaison...
View ArticleUnicode \u2019 error
Hi, I am running a cURL to return data. I am getting a txt file that I then translate in to CSV by using this function:$xslt = New-Object System.Xml.Xsl.XslCompiledTransform; $xslt.Load($xsl);...
View ArticleDelete files older than 24 hours
Hi guys,with your help I created this script that delete from a folder all the files older than 14 days and keep just 1 for day from today to 14 days ago.I need that ALL the files in the last 24 hours...
View ArticleEnable-ComputerRestore error msg "Include System Drive in the list of drives"
Hi,I'm running Enable-ComputerRestore -drive "C:\" in WinPE8 but get this message "Include System Drive in the list of drives" in red ...The C: drive is the Windows 8 system drive ...If I run...
View ArticleCreate New Custom attribute in Active directory only with Powershell
Hi allI have an Active Directory 2012, i want to be abel to create a powershell script, that can create a total new custom attribute in Active Directory. And then the...
View ArticleCimException with Network Controller
I am trying to install Network controller on a 2016tp5 VM following this procedure: https://technet.microsoft.com/en-us/library/mt282165.aspxI get an error while running the command...
View ArticlePowershell Script to change DDGs to "All Recipient Types"
Hello -Does anyone have a powershell script that can change a filter within a DDG to "All recipient types"? Please see attached image for what I am talking about.Thanks
View ArticleFacebook module question
when i get to the login step of this tutorial i sign in and a page asking for permissions is to come up but it dont why...
View ArticleWindows Net on xNix and iOS
Supported OSs with Net core.Red Hat Enterprise Linux 7.2Centos 7.1Debian 8.2+Ubuntu 14.04 (16.04 support is coming at RTM)Linux Mint 17+OS X 10.11Windows 7+ / Windows Server 2012 R2+Windows Nano Server...
View ArticleDebug Prompt not coming when Powershel breakpoint hit
Hi,I have created a breakpoint as followsSet-PSBreakpoint -Command get-process -Script C:\Temp\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1or Set-PSBreakpoint -Script...
View ArticlePowerShell Find-DSCResource Error
When running Find-DSCResource or any other PowerShell Get cmdlts I get the following error."WARNING: Unable to resolve package source 'https://www.powershellgallery.com/api/v2/'."I have looked online...
View ArticlePowerShell Script to Catch Empty Query Result
Hello,In the below script, when the results are written to the .csv file, it basically writes NO DATA text to every SQL server instance once withouttruly evaluating whether there are any data returned...
View Article