Machine Model and Product Number
Hi All,Currently I am using (Win32_ComputerSystem ) to get the Computer Model ... but I come across a situation where I have similar models but different product number.I have following HP models and...
View ArticleCall user data to display back at the homepage
$conn = mysql_connect('localhost','jaesya','1234') or die(mysql_error()); mysql_select_db("eleave",$conn); $result = mysql_query("SELECT * from detailsstaf WHERE icstaff='stafname'"); $row =...
View ArticlePowershell Get-ADComputer Help Needed
Hello All,I have used Get-ADComputer to do an export of all computers in our environment as I need to install an agent to all servers. It is not quite what I need though. Can someone please help with...
View ArticleAssciators of users in Powershell
Hi,I am using the following to know the groups of the user using powershell.Associators of {Win32_UserAccount.Name='$username',Domain='$domainname'} WHERE AssocClass=Win32_GroupUserOn some windows 2008...
View ArticleQuery/Enumerate eDirectory in Powershell via System.DirectoryServices
Hello Scripting Guy, I have been tasked with taking a .Net program/project and converting it to PowerShell. The .Net program exported three sources of information and inserts those exports into a...
View ArticlePowerShell Find all OU with group folder named Terminations
Writing a term script and need to find all OU's with the sub folder of Terminations. The following script below works, but will only return the OU when the complete path is defined. I want to do a wild...
View ArticleEnumerating all AD users, so script runs in a loop
I am going to do a SharePoint upgrade this weekend from 2010 to 2013.I need this script to run against every Active Directory user automatically, not just one at a time. How do I get this get this...
View ArticleNeed to change password of service account
I am looking for one command or script - Requirement is to know my admin account is used in which all servers or application as service account .Because if i change the password of my admin account...
View ArticleChecking against multiple domains
Hi allThe script below works perfectly fine, but I feel there is a better way to write it/condense it. We have a list of nearly 2,800 servers that we have to confirm which of the 8 domains they belong...
View Articlehow to change file name to folder name
Hi Guys I have a folder constructed as below c:\folder\userA; c:\folder\userB; c:\folder\userC; and so on, and in each usrX foler, there was local.csv file , so now what i want was to change the...
View ArticleHow to Automatise the moving of specif daily created files?
Hi everyonei need to move files which have been worked out,(file which are renamed with datestamp when worked out) to a specific folder.File with no datestamp in their name shall stay in their...
View ArticleExchange Powershell, search for * not wildcard
HiI am trying to search for all mailboxes where the displayname contains the character *Something like this.Get-MailboxDatabase X | Get-Mailbox | where {$_.Displayname -contains '*'}How do I do this,...
View ArticleProvisioning mailboxes to different databases based on office location
We have a script to create all new users based on what is being created in our HR system. This script creates a mailbox for the user in the database "NewMailboxes". Then everyday a script is being...
View ArticlePowershell does not execute external command after script running
Hi All,I have a problem with my PS script. After running my Active Directory sync script, PS does not execute any external command. So, for example I type ipconfig and does not return any answer, the...
View ArticleScript windows server 2008 r2 (folder)
Hi, my name is Paul.I can not remove the permission of the users of this folder. what am I doing wrong?Option explicit Dim oShell set oShell= Wscript.CreateObject("WScript.Shell") oShell.Run "icacls...
View Articlewrite extended file properties
hello, how, can I write extended file properties?I use "GetDetailsOf" to read, but I am not know how can write.Thanks
View ArticleWMI Process Call Create gives good feedback but doesn't work
I'm developing a VB.NET application able to control remotely other computers, send commands and retrieve informationHere's the code: Dim connOptions As ConnectionOptions = New ConnectionOptions()...
View ArticleCopy-Item for a GIVEN time. I give up!
Hi, I have had enough of trying and have come here as I know I will get an answer...I give up!!I would like to have a PS script that will search through a directory for a file with a GIVEN time stamp...
View ArticleNew-Partition assignes driver letter to mount point after reboot.
Trying to create a series of mount points using powershell on Server 2012 R2. When I have used diskpart in the past I could initialize the disk, create a partition, format a volume and assign a mount...
View ArticlePowershell Copy command overwrites files by default
Is there an option that will cause Copy not to overwrite?
View Article