Posts

Showing posts from March, 2010

powershell - outfile question...

hi; i have line of code writes $computer variable text file , works me; however, i'd add $date + times variables along $computer each line in text file contains hostname along date , time. possible? in advance, doing head in $computer | out-file c:\vncrestarted.txt -append i of this. i've adjusted code include doubled quoted texty bits... will save copy and email myself ;) # setup trap catch exceptions trap [exception] {  write-error $("trapped: " + $_.exception.message); }   # read computers text file $computers = get-content c:\computers.txt; $start = $true;   # setup service array service names want check running $servicearray = 'uvnc_service';   # powershell knows it's array working simple foreach($computer in $computers) {  write-host "checking $computer";  $objwmiservice = get-wmiobject -class win32_service -computer $computer    foreach($service in $objwmiservice)  {    # check each s

Win2003r2 Caching DNS Server fails/stops resolving after 4 cname answers for www.cisco.com

hi guys, we got realy strange dns cache resolving problem.  if cache empty works! > www.cisco.com. server:  dc2.xxx.local address:  10.255.248.10 ------------ got answer:     header:         opcode = query, id = 24, rcode = noerror         header flags:  response, want recursion, recursion avail.         questions = 1,  answers = 6,  authority records = 0,  additional = 0     questions:         www.cisco.com, type = a, class = in     answers:     ->  www.cisco.com         canonical name = www.cisco.com.akadns.net         ttl = 0 (0 secs)     ->  www.cisco.com.akadns.net         canonical name = geoprod.cisco.com.akadns.net         ttl = 0 (0 secs)     ->  geoprod.cisco.com.akadns.net         canonical name = www.cisco.com.edgekey.net         ttl = 0 (0 secs)     ->  www.cisco.com.edgekey.net         canonical name = www.cisco.com.edgekey.net.globalredir.akadns.net         ttl = 0 (0 secs)     ->  www.cisco.com.ed

Problem with configuring RRAS service

Image
i have tried configure rras service on win server 2003 standard edition . not happening giving me error ic (incoming connections) enabled on cubicadmin. configure rras, please disable ic , try again. cubicadmin system name . cannot find service called incoming connections , cannot able disable .   please me...   thanks in advance. ahh, understand. posting that. try this: 1. go network connections , delete "incoming connections". 2. configure rras, configure routing , remote access system received "incoming connections". http://www.pcreview.co.uk/forums/configure-rras-please-disable-ic-and-try-again-t1445923.html     ace fekay mvp, mct, mcitp ea, mcts windows 2008 & exchange 2007 & exchange 2010, exchange 2010 enterprise administrator, mcse & mcsa 2003/2000, mcsa messaging 2003 microsoft certified trainer microsoft mvp - directory services complete list of technical blogs : http://www.delawarecountycomputerconsulting.co

Multiple accounts getting locked out.

hi, we running active directory 2008 r2 in mixed domain because still have 1 2003 dc. several of our ad accounts locked out, mine gets locked out 2-3 times day. i've used altools , dc's security logs have traced down laptop. i've checked usuals on laptop, network drives, scheduled tasks, services, scripts etc. please dont suggest obvious. ive enabled kerberos client logging on pc system event logs dont tell me much, these: a kerberos error message received: on logon session client time: server time: 5:14:18.0000 7/16/2013 z error code: 0xe kdc_err_etype_notsupp i've followed article enable netlogon logs on domain controller. http://msviennatechnoblog.wordpress.com/2011/12/05/ad-enable-netlogon-debug-logging/ in netlogon logs, these entries same time acct gets locked out 07/16 14:12:50 [logon] domain: samlogon: transitive network logon of domain\user from mylaptop (via domain controller) entered 07/16 14:12:50 [logon] domain: samlogon: tra

RemoteApp 2012 - Optimize connectivity

dear gents, here setup: session-based deployment rdcb01.domain.local - connection broker rdgw01.domain.local - rdweb + rdgw roles located in dmz. dc01.domain.local - ts license server file01.domain.local - central home drive , profile (folder redirection) store. 2 remoteapp collections: rdsh01-04-.domain.local (rd_farm_01.domain.local) rdsh10-16.domain.local (rd_farm_02.domain.local) i`m using tls certificate remote.domain.com public pki for: rdcb - publishing rdweb rdgw , self-signed tls certificate *.domain.local (customer has no internal pki) for: rdcb - sso rdsh - remote desktop connections there client-side gpos in place, per documentation, allow credential delegation rdcb , rdgw servers , self-signed certificate enrollment. on rdgw i`m allowing http on default port, limit network firewall requirements. full folder redirection in place network storage on file01.domain.local questions: #1 active remoteapp intermittently discon

客户机与域控失去联系 (Client with a domain controller lost contact)

Image
客户机因为在外时间过长,导致与域控失去联系. 请问除了重新加域,还有其他办法么?如何预防呢? tanslation client out for long, resulting in lost contact with the domain controller . other the re- add the domain , there other ways you ? how prevent it ? hi,   according problem description, issue related windows server chinese edition. windows server chinese edition issue, best resource windows server chinese forum.   based on current situation, you’d better submit new question windows server chinese forum further assistance. in way, issue can resolved effectively. windows server system http://social.technet.microsoft.com/forums/zh-cn/windowsserversystemzhchs/threads   thanks understanding!   regards, arthur li technet community support Windows Server  >  Windows Server General Forum

Having An Issue With PS1 To Find String & Use To Rename File

i have ps1 below - not throw errors in debug or run, doesn't rename of file i'm looking for. $files = ((get-childitem $dir).name -like "hsbc_fr*.txt") foreach ($file in $files) {$val1=(get-content $file | select-string -pattern "eur") $newname = $val1 + "france" + ".txt" rename-item $file -newname $newname} script dips file , finds string eur, use rename file "eurfrance.txt"  confused since no errors show - missing? start formatting code correctly: $files = (get-childitem $dir).name -like 'hsbc_fr*.txt' foreach ($file in $files) { $val1 = get-content $file | select-string -pattern 'eur' $newname = "$val1france.txt" write-host $newname -fore green rename-item $file -newname $newname -verbose } \_(ツ)_/ Windows Server  > 

Windows Server 2008 & GhostCast - Unable to control A20 Line

have new server running evaluation of windows server 2008 , previous server running windows server 2003.  both have exact same symantec ghost solution suite software on them , both using 3com boot services run pxe server. pretty set exact as possible troubleshooting purposes. using same ghost boot file , pxe menu file on both machines can machine boot pxe, load ghost, , automatically connect active ghost session on windows server 2003. however, on windows server 2008, when same machine trying connect, after boots pxe , starts transferring ghost boot image, after pc-dos loads, , undi drivers load, goes himem loading , error: "error: unable control a20 line!                xms driver not installed" what missing in ws2008 isnt in ws2003? hi,   please follow steps configure config.sys file on problematic computer , check if issue re-occur.   1.  @ command prompt, first check ensure himem.sys file located in windows folder   2.  check make sure path in msdos.sys fil

installing microsoft office 2003 to windows 10

is ok install microsoft office 2003 windows 10? hi, we can check check microsoft compatibility center, , office 2003 not compatible windows 10: https://www.microsoft.com/en-us/windows/compatibility/compatcenter/productdetailsviewer?name=microsoft%20office%202003%20professional&vendor=microsoft&locale=1033%2c2057%2c3081%2c4105%2c16393&modelorversion=11&breadcrumbpath=office%202003&lastsearchterm=office%2b2003&type=software&temposid=windows%2010 but, our mvp has done test: @ running older versions of microsoft office on windows 10 the older version of office still can run in windows 10. http://answers.microsoft.com/en-us/windows/wiki/windows_10-win_upgrade/a-look-at-running-older-versions-of-microsoft/6faf72ea-254a-4c8e-9982-2c36cdb1936c hope it's helpful. regards, george zhao technet community support it's recommended download , install configuration analyzer tool (offcat) , developed microsoft support teams. once tool inst

Managing Windows Update for Windows Server in cloud environment

hi, we using windows server 2008 r2 in our hosting server in cloud environment. know how manage patches , windows update when there no access microsoft windows update server. there way manual patches offline? the key challenges here patches need update on server itself. how can determine this? is possible have management tools provide these functionality? rudy hi, by "no access microsoft windows update server" did mean microsoft update or wsus ? you use wsus scvmm 2012 patch cloud environment : http://social.technet.microsoft.com/wiki/contents/articles/4801.patching-your-fabric-with-scvmm-2012.aspx regards, Windows Server  >  Windows Server General Forum

Forcing WSUS to Reboot 2012 server after updates complete.

we control automatic updates cycling 2 gpos in , out because allow updates occur during 1 day month. we have 2 gpos,  1 sets updates manual , other sets them automatic on saturday @ 9:00am.   discovered windows 2012 no longer reboots (if necessary) after updates installed, waits 2 days , if no users have logged on confirm reboot forces reboot.   in order our maintenance routine work need windows server 2012 reboot following installation of these updates on saturday when auto-install gpo in place.   used work 2008 , 2008r2 , new behavior 2012.  i found discussion http://social.technet.microsoft.com/forums/windowsserver/en-us/755e3325-fd60-4332-baaf-fbd02885858b/a-restart-is-needed-pc-will-automatically-restart-the-next-time-you-sign-in?forum=winserver8gen issue, fix outline doesn't seem make sense me.   there new gpo setting need toggle wsus updates perform did in 2008? it seems though put fix in place similar problem. see if doesn't fix issue --- first,

powershell script to find and change registry values

how to <g class="gr_ gr_7 gr-alert gr_spell gr_run_anim contextualspelling ins-del multireplace" data-gr-id="7" id="7">powershell</g> script find , change registry values ? script repository registry changes Windows Server  >  Windows PowerShell

copy CRLs after certutil -CRL

hi! i trying copy crls automatically server (running under linux). is: certutil -crl    and   scp somewhere when domain admin, works, when user local admin rights, @ certutil -crl 0x80070005 (win32: 5 error_access_denied) since want let run scheduled task prefer local admin account. what missing? yours, ralf ralf wigand, mvp windows server:directory services this issue related uac. when run command prompt in normal mode, administrator membership not attached token , command prompt not recognize caller administrator. why have run command in elevated command prompt. scheduled tasks there check-box "run highest priveleges" add administrators token caller. in other words: 1) in console, command prompt should run in elevated mode 2) in task scheduler, enable check-box enables available priveleges. my weblog: en-us.sysadmins.lv powershell pki module: pspki.codeplex.com powershell cmdlet editor pscmdlethelpeditor.codeplex.com check out new: ss

How to extract columns from PowerShell

Image
hello, i new powershell programming.  i want extract ad information providing input <g class="gr_ gr_127 gr-alert gr_spell gr_run_anim contextualspelling ins-del multireplace" data-gr-id="127" id="127">csv</g> file user's first , last name.  i don't know how extract first , last name column 2 different variables powershell query ad givename , surname.   below powershell script wrote.  where firstname , lastname should come <g class="gr_ gr_997 gr-alert gr_spell gr_run_anim contextualspelling ins-del multireplace" data-gr-id="997" id="997">adtest</g>.<g class="gr_ gr_1010 gr-alert gr_spell gr_run_anim contextualspelling ins-del multireplace" data-gr-id="1010" id="1010">csv</g> input rows.   any suggestion? adtest.csv file: brandon ho jerry smith import-module activedirectory $aresults = @() $list = get-content "c:\temp\adtest.cs

XP Shut down Problem

hi i have problem , when trying shut down pc xp os take 5 minutes shutdown hi, you can try boot computer clean boot status, shutdown see if there improvment. if so, can continue narrow down steps provided in article see if can find out cause. how configure windows xp start in "clean boot" state http://support.microsoft.com/kb/310353 meanwhile, caused security program, can first try disable security programs including antivirus program etc, shutdown computer see result. in addition, windows xp related issue recommended post on windows xp forum instead of windows server forum: windows xp service pack 3 (sp3) http://social.technet.microsoft.com/forums/en/itproxpsp/threads shaon shan| technet subscriber support in forum| if have feedback on our support, please contact tngfb@microsoft.com Windows Server  > 

PowerShell configure smtpserver

in powershell how configure smtpserver: ping "stmp.email.com" = “ xxx . xx . xx . xxx ” $smtpserver = “ xxx . xx . xx . xxx ” or "stmp.email.com" ???????? ps code: $ipsmtp = 'xxx.xx.xx.xxx' $plainpassword = "adminpassword" $securepassword = $plainpassword | convertto - securestring - asplaintext - force $username = "mysite\administrator" $credentials = new - object system . management . automation . pscredential - argumentlist $username , $securepassword $mailprops =@{ subject = 'this subject' body = 'the body , subbody' to = 'emailto@mail.com' from = 'emailfrom@email.com' smtpserver = 'smtp.email.com' } send - mailmessage $mailprops - credential $credentials no matter if use smtpserver: 'smtp.email.com' or $ipsmtp still same result. this ps code missing credentials for'smtp.email.com'.  has usernam

Creating a function with boundparameters, I don't know what's wrong.

Image
i don't know if brain messed but, can't work. whenever write: read-text "test" or read-text -fore yellow "test" it's printing following: if ($fore) { [void]$psboundparameters.remove("fore") [console]::foregroundcolor = $fore read-host $psboundparameters [console]::resetcolor() } else { read-host $psboundparameters } here's module, i'm importing, before running script: #read-text #you can give read-host command color instead of white function. #example: #read-text -fore yellow "type something" #you can still save variable: #$a = read-host -fore yellow "type something" #write-host $a function read-text { param($fore) { if ($fore) { [void]$psboundparameters.remove("fore") [console]::foregroundcolor = $fore read-host $psboundparameters [console]::resetcolor() }

GPP Drive Maps, get Event ID: 4098 and error 8007052e unknown user name or bad password

i have 1 user cannot connect server correct username , password. created ggp , have mapped multiple drives on 3 servers. dc server 2008. user xp sp3. trouble drive on server 2003 box. originally, had used logon scripts map drives. when user login, @ desktop command prompt asking correct username , password particular share. enter same user name , pw did @ network login screen , map drive , well. changed user have gpp , mapped drives there. connect except 1 drive. drive on particular server. other drives on other servers. when @ event log, see: event type:         warning event source:     group policy drive maps event category:                 disk event id:               4098 date:                      5/16/2012 time:                      8:19:54 am user:                      nt authority\system computer:           computername description: the user 'j:' preference item in 'logon supervisor {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}' group po

Unable to delete DNS names with dots in

i unable delete "reverse lookup" records have dots in names. evertime delete one, re-appears. don't think replicationh related (as on dc). names listed servername.ilo.domainname.local there no corresponding entry in "forward lookup". if create entry in "forward lookup" creates new corresponding ptr records , when delete record automatically deletes corresponding ptr record. don't seem able delete old ptr records. can please. i have experienced in past myself.  used method 1 in article delete records. you cannot delete dns ptr records contain uppercase characters in windows server 2003 http://support.microsoft.com/kb/842127 visit: anitkb.com , knowledge base. Windows Server  >  Network Infrastructure Servers

managing multiple "old" AD computer objects

so have implemented naming convention techs select location , department during imaging process  machine deployed; during process , computers automagically named "nyc-fin-1234567"... 1234567 being dell asset tag.... pretty nifty johan(!) however... problem once machine gets re-imaged @ same location , deployed team marketing folks  (ie."mkt")... gets name nyc-mkt-1234567... the problem seeing have multiple objects in ad same asset tag causing nightmares licensing management... nyc-fin-1234567 & nyc-mkt-1234567 respectively. i working on powershell script trim names down respective tags , compare list duplicates - check  and compare duplicates properties "created date" , make determination , delete older object... this checking duplicates proving little more difficult , haven't gotten evaluate section yet...  i still working on proficiency when comes more complex arrays. am going right way or else have approach conundrum? scripting g

Update McAfee Dat on multiple remote servers

Image
hi all, new ps scripting, have small requirement , need update mcafee dat on multiple remote servers without login them, ps script tried following code not working , can me correct this. $remoteservers   =   get-content   "c:\logs\mcafee\servers.txt"         @(             foreach  ( $server   in   $remoteservers )           {              if  (  test-connection   -computername   $remoteserver   -count   1   -erroraction   silentlycontinue  )             {                               $path = 'c:\program files (x86)\mcafee\virusscan enterprise\mcupdate.exe'                $parameters = '/update /quiet'                $path = 'c:\program files (x86)\mcafee\common framework\cmdagent.exe /p'             }              else             {              $path = 'c:\program files\mcafee\virusscan enterprise\mcupdate.exe'              $parameters = '/update /quiet'       

disable accounts

we have script creating user accounts staff. use first name initial + last name  upto 8 letters. if there same firstname user first 2 letters of firstname +lastname, if there 3 user first 3 firstname + last name. works fine. in script have part of disabling accounts. uses first letter of first name +last name diable accounts. results wrong user disabled, because both have same first initial +lastname. seems best way through unique identifier. have unique number identify user in feed file, didn't use in ad yet. best way resolve issue? i'm thinking set field in ad unique number, not sure field should be. maybe can use get-qaduser along parameter unique number user's samaccountname disable it.  know in our case don't sid. suggestions in ad store unique number? thanks first, i'm sure strings case insensitive in queries quest cmdlets. next, query seems require 3 attributes, givenname, sn, , samaccountname, should have designated values. however, think have f

Remove older files in multiple folders

we have older windows 2003 server, hosts iis. delete older iis log files through automated job. use batch file instead of powershell, because powershell not installed on server. , plan upgrade newer next year. use following script, see   there folders named w3svcxxxx besides w3svc1  . x randoms numbers. folders, if want delete files in folders, should change in following script, how can use wild card in folder name? tired use w3svc*, not working.  save below line in .bat file.  thanks forfiles -p c:\windows\system32\logfiles\w3svc1 -s -m *.log -d -30 -c "cmd /c echo @file"older sqlfriend i'd ask them on here. http://social.technet.microsoft.com/forums/en-us/itcg/threads       regards, dave patrick .... microsoft certified professional microsoft mvp [windows] disclaimer: posting provided "as is" no warranties or guarantees , , confers no rights. Windows Ser

Lost remote connection to SQL Server after replacing DSL modem

i "run" small business has main office network on server running server2003 sql.  our second office logs server user via rdc  from either window xp pro or windows 7 pro workstations.   had modem go bad , had replaced local phone company.  now cannot log server.  i have investigated settings in modem , appears ok have enough knowledge capable in simple situations.  am missing easy or need change settings within server?  any appreciated.  might have been tcp port 3389 forwarding setup in old modem to go private address of sql server.       regards, dave patrick .... microsoft certified professional microsoft mvp [windows] Windows Server  >  Remote Desktop Services (Terminal Services)

Error VSS 12293 and Error VSS 8193

i have win2008r2sp1 english/standard fileserver , last month arcserve stops backups. all vss writers ok, every time e try backup following erros appears. same erros appears when shadowcopy starts. dfs replication ok. errors: ============================================================================= level date , time source event id task category error 06/06/2012 04:56:29 vss 12293 none "volume shadow copy service error: error calling routine on shadow copy provider {b5946137-7b9f-4925-af80-51abd60b20d5}. routine details endpreparesnapshots({bbdffb2a-28ef-4eff-af5f-244fc1865fe4}) [hr = 0x80042302, volume shadow copy service component encountered unexpected error. check application event log more information. ]. operation:    executing asynchronous operation context:    current state: dosnapshotset" error 06/06/2012 04:56:29 vss 8193 none "volume shadow copy service error: unexpected error calling routine cannot find anymore diff area

2008 Server GPO Editing Problem ?Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

when trying edit gpo settings showing error message , settings still remaining old. please help??     see end of message details on invoking just-in-time (jit) debugging instead of dialog box. ************** exception text ************** system.unauthorizedaccessexception: access denied. (exception hresult: 0x80070005 (e_accessdenied))    @ microsoft.grouppolicy.admtmpleditor.igpmadmtmpleditorcallback.applychanges()    @ microsoft.grouppolicy.admtmpleditor.editor.savechanges()    @ microsoft.grouppolicy.admtmpleditor.editor.buttonapply_click(object sender, eventargs e)    @ system.windows.forms.control.onclick(eventargs e)    @ system.windows.forms.button.onmouseup(mouseeventargs mevent)    @ system.windows.forms.control.wmmouseup(message& m, mousebuttons button, int32 clicks)    @ system.windows.forms.control.wndproc(message& m)    @ system.windows.forms.buttonbase.wndproc(message& m)    @ system.windows.forms.button.wndproc(message& m)

Administrator Command Prompt?????

so have been working lh beta 3 few weeks now, , have come first head scratching snag… i wanted @ available attributes defrag.exe. when tried typing “defrag.exe /?” in command prompt following error “this program needs run administrative permissions. use administrator command prompt , run program again.” what os looking for. logged on domain account has full admin access local host. how administrative command prompt? right-click , select "run administrator". Windows Server  >  Windows Server General Forum

WSUS farm for managing Windows 10 clients only - Best design??

hello- i've got set wsus farm managing windows 10 clients only.  clients reach numbers of 20k or more refresh our windows 7 clients. thinking i'd use network load balancing , set main wsus server , several additional wsus servers in replica mode handle load. i've read, looks each wsus server, main or replica requires database.  plan use sql main server because has potential grow quite large thousands of clients, should replica servers connect own sql server database well?  also, potentially connected sccm, however, i'm not familiar sccm @ all, right discussion best stick wsus.  ....unless critical...   =;^)  all servers windows server 2012r2. is best way this?  suggestions appreciated!! thanks, chris hi cdlwood, 1. wsus, not in sccm. may specify store updates. if choose store updates locally, can limit updates downloaded server language. if choose store update files on microsoft update, wsus server obtains metadata updates. in scenario, u

Desktop wallpaper GPO not working

Image
hi all, i using windows server 2008 r2 domain contorller , windows 7 pro clients, have updated desktop wallpaer gpo in default domain controller , have shared wall paper so, client side windows 7 desktop full block color. gpo not working... please me how updated this.. thanks & regards, kumar.v hi, in addition adding registry key: [hkey_current_user\control panel\desktop\wallpaper] please refer below hotffix: the "desktop wallpaper" group policy setting not applied in windows 7 or in windows server 2008 r2 http://support.microsoft.com/kb/977944 best regards, yan li yan li technet community support Windows Server  >  Group Policy

Typing in remote Control when changing language with key combination of Alt + Shift some time change to Upper Case and Caps Lock is off

let me first links dos not apply problem first 1 : http://social.technet.microsoft.com/forums/en-us/winserverts/thread/46b24b68-debf-466e-a780-66a3b999724c and dos not apply because dont use remote app, , able change settings http://social.technet.microsoft.com/forums/en-us/winserverts/thread/6a0f0eda-d3f6-4cd9-91ef-a7e0b20bc799/ this 1 has similar problem working remote app , not have upper case , caps lock off http://social.technet.microsoft.com/forums/en-us/itproxpsp/thread/f978e234-2b3c-4780-9dda-bec52b25330d this 1 using xp have on windows 7 connecting remote server 2008 r2 here issue  my users remote control terminal services farm, when changing language english some  time change english upper case , caps lock off ! alt + shift , go english lower case , if play (i mean use alt shift on , on try normal state when hold shift , alt , change english , hebrew if hold alt shift 1 more time ) i tonic thing strange ifi hold down first alt , shift issue happen more

Active Directory Monitoring - GPO

i trying setup security audits on when user accounts created, deleted or modified within active directory can't work properly. steps have done.. withing gpo management:  edit default domain controller policy computer configuration -> windows settings -> security settings -> local policies -> audit policy. enabled audit account logins events, enagled account manamgment, en abled directory service access/ make sure success , failure events applied. ran gpupdate /force created ad account, deleted , ad account.  looked in security audit logs in event viewer..don't see instance. - brian clanton hi, thanks post. please try enable below setting , check if issue persists. computer configuration\windows settings\security settings\advanced audit configuration\ account management configure: audit user account management success , failure besides, try create new gpo, enable necessary policies , link domain. after that, create new account , check

Missing WMI Win32_PerfRawData_NTDS_NTDS

i have 2008 r2 server dcpromo'd. have management software looking win32_perfrawdata_ntds_ntds class missing winmgmt /salvagerepository not fix it. i dcpromo'd server out of ad, tried again, same result. is there way class in server? thanks   hi,   have tried wmiadap /f ?   http://msdn.microsoft.com/en-us/library/aa394528%28vs.85%29.aspx   -- mike burr Windows Server  >  Windows Server General Forum