Userprofile Name only
Sorry if this is a Noob question as i only do VB Scripting here and there as required. I'm not even in IT but they are the ones comming to me to due custom things.Recently my comapy has gone from a...
View ArticleRetrieve a SID using VB script
Hi All,I can't figure out how to retrieve a SID so I can remote query CU reg values for example. I would like know if there is a function similar to psgetsid. I found a lot of things out there but...
View Articleinstall .exe\.bat file on remote servers using powershell
Hello,I am having an application which i need to install on multiple servers. in the list of server i have windows x86 and x64for windows x86 it should install from c:\temp\abce_x86.bat /sfor windows...
View ArticlePowershell How to return object in a function
Hi, I am trying to write a function which can return the WMI object pointer from a function. Here is my sample code. But it does not return the object reference, it returns the following....
View ArticleChange impact scope to one ou user
Dear Expert,Here a VB script to query and set user AD attribute to "control access through..", but it's only for one user, I want to do the same action for bulks of users in one AD OU, how can I change...
View ArticleNested Check Folder
Hi guys, I am developing an application, written in powershell. I stuck in a point. I am trying to do a nested check into a folder with script. I want to make a script that will check whether its a...
View Articlemessage box and 2 custom buttons
Hi All.I am using WinPE 3.0 and here I need to run some bat files.I need show a dialog box with 2 options /buttons /or Radio options Click Black (to start the black file.bat) Click White (to...
View ArticleFTPS and Proxy in Powershell
Hello Scripting Guru's ;)I am working on a script that to get the status report and description on a schedule basis from an external ftpServer . The requirement is to enable SSL. I tried something but...
View ArticlePowershell Text- Formatting
I am trying to format the output of thirdparty command in Powershell and take only the server name. I used split option to put in excel but its not helping out. can someone help me to format thebelow...
View ArticlePowershell - foreach with if loop
Hello,I have a little problem with my script. Contain Sharepoint, but my problem is programming related.I have 3 folder. So this will run 3 times. After the script examine a folder it drop an error...
View Articlemoving in ad with powershell via scripts
Hi All,I want to search through the AD and count users in certain OU's.Therefore I want to use loops to go through the directory tree to the destination OU's.I tried it with this function but the...
View ArticleGet-ChildItem : The specified path, file name, or both are too long. The...
Hi, Im trying to get the whole path in my server, so i tried that with this following codeGet-ChildItem $sourceFolder -Recurse | ?{$_.PsIsContainer} |Get-AclBut then, it showed me somtehing like this...
View ArticleFrom Live@Edu to Office 365 -PowerShell and User Creation Question.
Hy to all!; Recently my Live@Edu platform was upgraded to Office 365, I use the CSV_Parser.ps1 to add new account using PowerShell. Today I make a test one account to modify and other to add, but...
View Articlesplit a share to get ip adress and reconnect the share
hello ,i would like to get the ip adress to connect a share with the ip adress and not the hostname.exemple : \\server\share_namei want a system who get the ip adress and split, pinging the server...
View ArticleHow do I read multiple lines from a text file and insert each as the path for...
I'm trying to set up a VBS script that will set up multiple directories, each a number of folders deep.I can set up one multi-level directory using the following code:Option ExplicitDim objFSOConst...
View ArticleScript opens extra blank page
Hi allI've sort of cobbled a few peoples scripts together I'm making for non-domain Windows 8 PCs in a domain environment. It asks for the username and password with not hassles, maps the network...
View Articlereplace XML tag have datestamp with current datestamp
<Configuration ConfiguredType="Property" Path="\Package.Variables[User::ConfigFilePath].Properties[Value]"...
View ArticleSet Primary Group and Delete All Others
Hello PowerShell Gurus,I would like to write a script and need some help. I am still in the beginning stages of learning scripting. What I would like to do is this:Search through an OU and find people...
View ArticleQuery IIS log file
HiI have an IIS log file I would like to query and generate report for an investigation. I have used Log Parser to extract the bandwidth usage per minute for an hour but the script used only summed the...
View Articlehow to call ssis package installation wizard
I have to call SSIS deployment wizard on clicking on manifest file but instead execute SSIS wizard is opening how to change wizard in below code of powershell, I mean to say here, when I run this code...
View Article