Unable to change keyboard layout for all users on Windows Server 2012 R2
Hi,I have a requirement where I need to support national keyboard layout for Danish for all users on that machine. When I ran the powershell with script Set-WinUserLanguageList -LanguageList da-DK it...
View ArticleWindows 10 Powershell Feature win Windows 8.1
HiDoes anybody know if it possible to get the Windows 10 Powershell Features like transparency and CTRL-V features on Windows 8.1. I have tried to install WMF 5 Preview but those feature does not seem...
View ArticleDSC pull server - pause consistency check of selective MOF
Hi,I have configured a DSC pull server, and deployed few MOF files. I have also enabled a client node to access the deployed MOF in DSC pull server. Please let me know 1. How i can pause "Consistency...
View ArticleDictionary in script?
Hi developer, I am having problem with Add method. Here is my sample script:........................... ........................... $dictionary = @() foreach($aa in $test) { foreach(.....) {...
View ArticleRun a Dos command in Powershell
Hi,It seems like an easy question but it appears there are lots of ways to do this. I've been trying to run some dos commands to run NTBackup using start-process and arguments but the arguments are...
View ArticleUsing Windows Update Module remotely
I've downloaded and installed the Windows Update modules for powershell. The commands work perfectly locally but fails to work remotely. I am able to run other commands remotely such as...
View ArticleHow to execute powershell script without seeing anything on the screen DOS
Hello I 'm trying execute powershell script from DOS, I want to run the script and see nothing seen on the screen DOSThis is the line that I´m using: powershell -windowstyle hidden -ExecutionPolicy...
View ArticleProblem for send the result Enpty Just a title by email
hello, I allow myself to write to you I want to send the results of these two tests by email, Here is my script is functional, but I get that result in the terminal, and email but it is empty. What...
View ArticleA "tail -f" equivalent command in Powershell to show real time logging
Hello,Using the powershell command: Get-Content "Filename" -Wait -Tail 10 showing Real-Time contents of a file in powershell doesn't work.As example i would like to show Real-Time contents of a...
View ArticleGetting managers names
Hello all! I am very new to powershell scripting. I have some experience with cmdlets but get a bit fuzzy when throwing them together in a script. Especially when importing/exporting a csv file.So here...
View ArticleExport non-empty AD groups with assigned "Managed By"
Is there a way to use PowerShell to export all AD groups that are NOT empty AND also that the "Managed by" is not empty.Basically, I need all the group names that meet both criteria and also the login...
View ArticleExtract only numbers from String
Hello All,I have a requirement where I have to update valid phone numbers from bulk users.To test if it valid, I have to check the length of only the numerals (it should 11 to 12 max)For ex:$a = (+1)...
View ArticleProblem with send the result Empty by email
hello, I allow myself to write to you I want to send the results of these two tests by email, Here is my script is functional, but I get that result in the terminal, and email but it is empty. What...
View ArticleAutomated IISRESET using powershell
I am not on shift 24/7 and i need to automate the iisreset. Needed a powershell script to test the https://@#$%^&. and if its down do an IISRESET. A scheduled script to test availability every 20...
View ArticleExecute an script built in powershell since java and when the script ends...
Hello everybody,I need to run a script written in powershell since java, this part is work fine, the application in java execute the script, the script run fine but aparently the exection of program...
View ArticleExecute script on Multiple servers using Powershell
Hi,I am SQL server DBA and would like to use powershell to execute the below script to monitor the space in multiple servers.I have saved the server names in the file called "ServerList.txt"...
View ArticleInstalling PFX Certificate with Private key using DSC into Azure VM
Does anyone know of a way to import a certificate with private key into a machine in azure using DSC? There doesn't seem to be a DSC resource for this.
View ArticlePower Shell menu
Hey people I have written a powershell script, it has a menu system, that goes to a sub menu. and i in the sub menu, I want one of the options to be back to main menu. How can i achieve this. or a...
View ArticleSystem.Collections.Hashtable
Hi developer, I have already made script in windows powershell. For example: Two integers variables then sum ( {5,5} make 10. ) Here is my script:function TwoValues($input) { $regex = "({.*?})"...
View ArticleNew-VHD : Cannot bind parameter 'SizeBytes'. Cannot convert value "2GB" to...
Hi there,I have a csv file which looks like:DriveName;Size Drive_D;10GBThen I use following two commands to create a new vhd file.$disk=import-csv -Path C:\temp\Drives.csv -Delimiter ";" $disk | select...
View Article