Posts

Set-ADUser based on .csv file - empty attributes issue

hi, after few months without working powershell knowledge fading away fortunately every time happened before, i able rebuild knowledge again , same story. however want optimize simple code populates 3 ad user object attributes: manager, officephone , fax values stored in .csv file. works well, code looks not in opinion. there more elegant solution? $addressbook = import-csv -path d:\addressbookfinal.csv foreach($employee in $addressbook) {      if([string]::isnullorempty($employee.managerusername)) {               set-aduser -identity $employee.employeeusername -manager $null     } else {               set-aduser -identity $employee.employeeusername -manager $employee.managerusername     }     <#similar code here checking value of officephone , fax ...

NAP technical details?

hi nap gurus, i have couple of questions on nap in general , nap dhcp framework. nice if please me in answering them myself.   1. nps server accessible good/bad clients clients send health nps server before getting "authenticated?" mean vulnerable dos attacks?   2. in dhcp framework,  enforcement client sends health information dhcp server. dhcp server forwards health information nps server. nps server sends validation message dhcp server , client. client not have ip address, how nps server know send message.   thank you, divya hello divyakolar -   i'll address second question first - the health information passed dhcp server, , dhcp server communicates nps evaluation.  nps comes decision, passes decision, plus soh response package, dhcp server.  dhcp server enforcement server, , determines parameters pass client grant desired access level.  when dhcp ack passed client, includes soh response part of payload.  dhcp enforcement client...

Windows 2008 domain controller

dear all, we have windows 2008 server domain controller . it's working fine . have more group 1 of group name it. group have around 15 members . members support branches system . remote support . branches support engg . time doing install new software or hardware . change ip address form branches pc. here come point . all users , branches pc's member of domain controller. our branches support engg asking permission per change ip , install software , remotely log-in branches servers. permission can give them above purpose ? advance subash  hi suriya, you can make them member of local administrator group on clients, , workstation pc's allow them install software , change ip address configuration on client machines. if want them change ip address related configuration can add them to network configuration operators group. to this: control panel > administrative tools > computer managment > local users , groups > groups > network con...

Shared Building Blocks in office 10, how to?

hi all: i'm new, forgive stupid question. how share buildingblocks in win 2010. completly new me please give me complete answer   i have read setting template directory , using regedit give location word, doesn't seem work.   thanks reacting! erik   hi,   t he contents of building block galleries stored in templates. specifically, there several locations can save building block content in: 1.        word's building blocks template 2.        word's normal template 3.        any custom template a.        for usage specific type of document b.       for usage across documents   you can share building blocks sharing template. http://blogs.msdn.com/b/microsoft_office_word/archive/2007/02/20/deploying-building-blocks.aspx   for details, can refer article:   ...

Filter results to show count 20 or greater-TOTALLY STUCK

script needs pull sent totals exchange , show results 20 or greater.  can populate every recipient want show 20 or more.  if possible i'd current datestamp in teh heading well.  have been reading , testing several hours-cant seem make sing :-( tia $a = "<style>" $a = $a + "body{background-color:fff9ce;}" $a = $a + "table{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}" $a = $a + "th{border-width: 2px;padding: 2px;border-style: solid;border-color: black;background-color:thistle}" $a = $a + "td{border-width: 2px;padding: 2px;border-style: solid;border-color: black;background-color:palegoldenrod}" $a = $a + "</style>" $fromaddress = "sentandrecievedtotals@any.com"    $toaddress = "any@any.com" $messagesubject = "number of emails sent , recieved report" $messagebody = "attached report email sent , recieve...

Group Policy Preferences very slow on some PCs.

hello, we switched from a logon script to the gpp . i have problem on some pcs, the login may take to 20 min, while same user on another pc will open the session normally. apparently , on pc that works, the treatment of each shortcut is two hundredths of seconds. on pc that has problem , it goes to more 1 second by shortcuts. it seems be the filter on the ou that take considerable time . i not know how solve this problem. eg : pc ok : 2012-01-20 11:30:11.916 [pid=0x27c,tid=0xcbc] starting class <shortcut> - dreamweaver cs5. 2012-01-20 11:30:11.916 [pid=0x27c,tid=0xcbc] starting filter [and filterorgunit]. 2012-01-20 11:30:11.932 [pid=0x27c,tid=0xcbc] passed filter [filterorgunit]. 2012-01-20 11:30:11.932 [pid=0x27c,tid=0xcbc] starting filter [and not filterorgunit]. 2012-01-20 11:30:11.948 [pid=0x27c,tid=0xcbc] failed filter [filterorgunit]. 2012-01-20 11:30:11.948 [pid=0x27c,tid=0xcbc] starti...

Code to add to server pool

i added server rds via add-rdsserver worked intended when try browse rds via server manager following the following servers in deployment not part of server pool: 1.abc.forst.org the servers must added server pool. i love fix via powershell. looked around , couldn't find solution. hi justusiv, this issue occur when server part of remote desktop services deployment, it's no longer registered server manager. please try add servers server pool in server manager. to achive in powershell, please check article: step-by-step: using powershell add servers server manager in windows server 2012 i hope helps. Windows Server  >  Windows PowerShell