Search

  • refresh user profile

    I found this vbs script to refresh the current user profile so you can see the change immediately. what would be the powershell equivalent Set oShell = CreateObject("WScript.Shell") Set oSHApp = CreateObject("Shell.Application") Set oFSO = CreateObject("Scripting.FileSystemObject") 'Set Wallpaper to Path Below sWinDir = oFSO.GetSpecialFolder(0) sWallPaper = "C:\WINDOWS\DOMXP.bmp" ' Update Wallpaper in registry oShell.RegWrite "HKCU\Control Panel
    Posted to Ask Don Jones (Forum) by Chris Ngu on 05-12-2012
  • Re: refresh user profile

    The wallpaper was just an example. I want to be able to refresh the user's running profile so that changes made via the registry, such as with the Environment Variable PATH, can be applied to the user's running profile without logging off and back on. So that it can be used for scripted program installations which will make Environment Variable changes via registry key value additions within HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment. Idk if that makes a little more
    Posted to Ask Don Jones (Forum) by Chris Ngu on 05-12-2012
  • Re: refresh user profile

    Thank you
    Posted to Ask Don Jones (Forum) by Chris Ngu on 05-12-2012
  • Get-QADGroup

    I have a script Get-QadGroup -SearchRoot 'test.com/Master/Groups/Groups - Secure/Soft' | Sort Name | Select Name, Description, Notes, Managedby The problem I have is I am getting the DN for Managed by. How do I make it so it just displays the name of the person who manages the group "John Doe" and not (CN= John Doe ,OU=FL,OU=Users,DC=test,DC=com) Also I would like to export this to a csv file in a table format. Thank you so much
    Posted to Ask Don Jones (Forum) by Chris Ngu on 05-07-2012
  • Re: Get-QADGroup

    I have no idea what just happened. I am sorry, maybe I should have specified that I am new to programming and powershell? I dont want to bother you but giving me an example using something practical would help? like using the example I used? So sorry to bug you with such simple stuff (for you)
    Posted to Ask Don Jones (Forum) by Chris Ngu on 05-07-2012
  • Re: Get-QADuser.

    Thank you. I found another solution to the problem :). I just used <style> and assigned it specific attributes for my table and assigned that to a varriable $a and used ConvertTo-Html -$a
    Posted to Ask Don Jones (Forum) by Chris Ngu on 05-03-2012
  • Get-QADuser.

    Hey Don so I have this powershell scriptthat displays all the users and their office and sorts by office $result = Get-Qaduser -SearchRoot 'test.com/Master/Users' | Sort Office | Format-Table Name,Office -Auto | Out-String $emailBody = $result I email these results to myself. Problem with that is when I get the email the formatting is lost and they arent in the form of a table anymore, just rows and rows of lines of names and office locations. Want Can i do to keep the formatting when I receive
    Posted to Ask Don Jones (Forum) by Chris Ngu on 05-02-2012
Page 1 of 1 (7 items) | RSS | More Search Options
Copyright 2012 PowerShell.com. All rights reserved.