Report on selected AD users with groups for each user
Hi everyone, I'm new-ish to PowerShell, but have been more recently made aware of it's prowess so i'm going to start using it more! ;)Let me set the scene; our AD structure is arranged so that users...
View ArticleHome drive and looking for blanks
Back again, with a change of direction. Another project has befallen me. Id rather take a ring to Mordor to be honest. LDAP is useful but so unreadable so again i look to powershell.from many thousands...
View ArticleActive directory backup & recovery by powershell
Hello I must write a powershell script, which must backup and recovery an active directory by powershell script (with GUI). Do you have any ideas? Can you help me?Thanks in advance.Best regards winkid
View ArticleAdding Global group from one forest into a Domain Local group in another...
Hi everyone... I've been trying to create a script to nest groups from one forest into another forest. I can do it with no issues from the ADUC. I've read some articles on what they suggested to...
View ArticleCSV File Import into AD
Human Resources is going to start providing a .CSV file to me on a regular basis to be imported into AD.The file will only contain "employeeID" "department" and "company". It will not have the UPN,...
View ArticleIgnoring blank fields of csv file
Hi, I am new to powershell and I need some help if you are kind :)I have one script for adding users to my AD and I want to import a csv file. The script is working, but I want to add one user to more...
View ArticleDNS SERVER Backup Script
I am writing a DNS server backup script with additional options. Backing Up DNS Server DailyCreate a folder based on current dateCopy the backup from source to newly created folder based on...
View ArticleSoftware triggered IRQ in PS
Hi, Is there a way in powershell to initiate software triggered IRQ. I am trying to use the Measure-command to find the execution time of a script block. But due to the high CPU queue length, I see...
View ArticlePowershell PSObjects does not save data in excel sheet.
Hi, I am trying to save Powershell script with PSObjects to capture Registry data which is not able to save in excel sheet.Earlier i have captured registry data using Microsoft.Win32.RegistryKey, &...
View ArticlePowershell script run by end users
Hi,I am hoping someone can point me in the right direction. I have a requirement for end users to be able to run a powershell script to reset a leader PIN for a conferencing service hosted on Lync. I...
View ArticleGetting date and comparing
I want to compare the present date with the one in a file$fecha1=Get-Date -format "dd/MM/yyyy"$fecha2=((Get-Item C:\HOSTSUPDATE\HOSTS).LastWriteTime).Tostring().substring(0,10)if $fecha1 -eq $fecha2)...
View ArticleRestart server & then email
I am trying to write a script to restart a server and then email when the restart is done.I started with this basic command: Restart-Computer -ComputerName <string[ ]>,But I can't get it into a...
View ArticleFormatting Heck
I have this code and it works. foreach ($Machine in Get-Content "c:\temp\tmp\Machines.txt") {Get-WMIObject win32_mappedlogicaldisk -ComputerName $Machine | Select Name, ProviderName | fl} This will...
View ArticleModifying properties of Recycle Bin with Powershell
Hi Everyone,I am trying to create a script to modify the properties of the Recycle Bin. For instance on some drives I want to change it so it doesn't go to recycle bin while on other drives I want to...
View ArticleGetting Font Names form files
Good Morning,I have a folder with a lot of font files TTF, PFB & PFM and OTF files. I am trying to get the name and properties from these files, but i have not found anything about it. I have been...
View Articlework with windows files
Hello, i am new in Powershell. I Need very urgent help. i have to convert files "RC_*.zip" from a Windows Folder with a Java script with a foreach Loop. I do this with one file in a dos Batch file and...
View ArticleAdd an additional window with question
Hello to all, i am a beginner in powershell, maybe you can help me.This script opens a window where you can enter a licensekey, and this key will be written in a certain Reghive....
View ArticleAccess denied when remotely running a batch file
Hello everyone,I need to remotely run a batch file, same way as the author of this topic needed to: http://powershell.com/cs/forums/t/14235.aspx?PageIndex=3My batch file needs to open the user's...
View ArticleInvoke-RestMethod to upload a csv file with no contentType
Dealing with a special webservice I must upload a csv file.The JavaScript code to do this using jQuery is:var data = new FormData();data.append('file', document.getElementById('file').files[0]);...
View ArticleA way to copy only diffs from a file
Hello, i am trying to find a way to copy only a difference from a log file.I have .txt files in following format:20140413 133812-log events AAAA......20140413 133812-log events BBBB!20140319...
View Article