Posts

How do I Make columns in PSobject closer?

i'm using following code format below: $tobj =  new-object psobject $tobj | add-member -name "server" -value $server -membertype noteproperty $tobj | add-member -name "scenario" -value $arraypwshell.scenario -membertype noteproperty  $tobj | add-member -name "result" -value $arraypwshell.result -membertype noteproperty  $tobj | add-member -name "error" -value $arraypwshell.error -membertype noteproperty  $object += $tobj $object gets populated $tobj have above.  what i'm wanting have happen have categories "server" "scenario" , on grouped closer together.  when $object outputted screen, there lot of space between each column , of text gets cut off.  how bring each column closer together?  i know there way hash tables @{"value = xx, value=xx}.  anyone know how make happen?? jctech1123, cheers try: $tobj | ft -auto default output format format-table....

Question about DHCPLOC and our servers

Image
hello, studying 70-291 cert exam , started playing around dhcploc.  have attached screenshot of portion of recorded.  aware .153 dhcp server, not rogue.  didn't out in server because testing things @ time.  anyway, noticed lot of ack (ip)0.0.0.0 in our logs , curious going on causes them appear.  also, if simple request/offer/acknowledgement procedure, why have have same ip address being acknowledged repeatedly.  1.149 best example of this.  there issue should when see ip hitting server repeatedly?  aware of each of these users are, , confident don't have rogue programs running.  our servers not setup , desperately need cleaned up.  i'm hoping can learn through , maybe clean process. later in same log, started getting nack 0.0.0.0 also.    if give me quick pointers, i'd appreciate it, of resources have found have not yet addressed these questions.  have told me should see/should expect, don't cover out of no...

WMI Problems in Windows PE 10240 that does not exist in PE 10074

hi! finally got link windows 10 adk build 10240. great! my problems stack overflow errors after executing "powershell" or own c# code disapeared to! great too! but... i have trouble getting wmi information while running this new pe boot wim provided 10240. i switched new 10240 boot.wim , injected same winpe_ocs modules dism (also new 10240 version). for example, cannot information root\cimv2 win32_diskpartition or win32_diskdrivetodiskpartition. while many others running fine! i cannot value win32_operatingsystem property osarchitecture (other properties ar set!) the strange thing: these queries worked flawless boot.wim 10074. i happy, they are working again 10074, because wmi queries broken pe windows 8.1. had use , modify boot.wim dvd images not have issues. i not happy see, problems returned 10240 boot.wim, honest, nice if fixed, not have use dvd boot.wim again our installation environment. you can try out. use wmic in pe 10074 , in...

RDS Gateway Best practices Dual-Homed?

Image
good day, i wondering typical amount of time others see when end users launch remoteapp session goes through rds gateway. our 2 rds gateway servers (entire environment w2k12r2) seem slow me. both dual-homed , nic on dmz , internal side of network. maybe better off disabling internal nics , reconfiguring firewall rules routes through dmz nic? steve j. hi steve, thank posting in windows server forum. best practice server depends on environment scenario need decide whether place gateway in dmz or allow 443 opened internal network. placing rds gateway in dmz more secure, can have more information beneath article. rd gateway deployment in perimeter network & firewall rules http://blogs.msdn.com/b/rds/archive/2009/07/31/rd-gateway-deployment-in-a-perimeter-network-firewall-rules.aspx more detail , understand rd gateway refer this article . hope helps! thanks. dharmesh solanki technet community support please remember mark replies a...

Delete Session Collection by Server Manager show error

Image
in windows server 2016 technical preview 4, when delete rdsessioncollection server manager, it show delete collection error. but it seems delte collection successfully. need restart server manager this error condition.   hi yamauchi, since not able read japanese, please translate error message english? in addition, may check terminal services related logs find out whether related information logged, under: event viewer -> applications , services logs\ microsoft\ windows. best regards, amy please remember mark replies answers if , un-mark them if provide no help. if have feedback technet subscriber support, contact tnmff@microsoft.com. Windows Server  >  Windows Server Technical Preview ...

Hyper-V different Domain usage for RD Virtualization Host

hi, we have 2 ad-domains (2012-r2):  management.local , production.local. our hyper-v failover-cluster (3 phys. machines) placed in management.local. our remote-desktop-services placed in production.local (connection broker, rd-session-host, ...).  we add our hyper-v-failover-cluster machines rd virtualizations-hosts our production.local-rd-environment. is possible? no trusts between production.local , managment.local. thanks in advance, ben hi, for vdi issue please post “remote desktop services” board. technet remote desktop services http://social.technet.microsoft.com/forums/en-us/home?filter=alltypes&sort=lastpostdesc&brandignore=true thanks understanding , support. we trying better understand customer views on social support experience, participation in interview project appreciated if have time. helping make community forums great place. Windows Server ...

Adding local group to administrators local group W2k3.

hi everyone know if possible add local group administrators local group in windows server 2003. saw not possible in w2k3 in windows server 2008 possible. thank in advance adriano anselmi hi. not really. according microsoft nesting local computer groups aren't dont work, , if via commandline still wont work good. nesting of local groups not supported on workstations or member servers please remember click “mark answer” on post helps you, , click “unmark answer” if marked post not answer question. if not author of thread can others voting helpful. can beneficial other community members reading thread. oscar virot Windows Server  >  File Services and Storage

Individual ini Files

i posted question in 'microsoft.public.windows.terminal_services' newsgroup and, though relates 2003 terminal server i've been asked mervyn @ microsoft post here...... '   i suspect i'm flogging dead horse here, in case....... we have 2 epos client pc's connected via local lan sql server.  part of installation routine creates .ini file on pc's c drive contains information com ports , epos identification (so sql application can tell epos has made sale). i have move server building on other side of town and i've set terminal server (windows server 2003 standard) epos pc's connect to. my problem each epos installation creating .ini file in same place on terminal server.  each installation overwriting previous. bearing in mind it's not option sql application modified, is there anyway can fool terminal server thinking local c drive different each client? i suspect i'm flogging dead horse here, in case....... we have 2 epos client pc's co...

PowerShell Script running Excel won't run on Windows Server 2008 R2

i have script creates report of single example of each warning or error in windows event log, each server in list of servers,with number of times error has occurred in last week on each server. creates report in excel. have script running automated through task scheduler 1 client on windows 7 , it's working perfectly. have client attempting run script automated on server running windows server 2008 r2. can manually run script , works, if try schedule script works except excel powershell commands. i've have tried: created desktop folders config\systemprofile in system32 , in syswow64. configured permissions in dcom microsoft excel application. configured folder permissions config\systemprofile. verified powershell working. unchecked option in task run while logged on. does have idea why happening , how can fix it? thanks! sincerely, christopher beard you might have launch application once system account can set excel environment, i've had same problem w...

GetChildItem count returns null if there is one file in a folder

hey folks.  i'm absolute newbie ps please forgive me if question ridiculously basic.  i'm using following code see if folder has files in it: $imagefiles = get-childitem $filespec if ($imagefiles.count -gt 0) { write-host files found! } else { write-host folder empty! } everything working perfectly.  if folder has no files in it, executes else condition.  if has 2 or more files in it, executes code in first set of braces.  where goes wonky if folder has single file in it.  in situation $imagefile.count coming $null instead of 1.  i'm using ps 2.0. am doing dumb?  tia if can offer assistance! hi, in powershell 2 you should use @() operator when getting count property:  $imagefiles = get-childitem $filespec if (@($imagefiles).count -gt 0) { write-host files found! } else { write-host folder empty! } luck) Windows Server ...

RODC Failure...

Image
hi, so going absolutely crazy try configure rodc authenticate clients after credential caching has been done authentication done on rodc. this doing, can 1 please tell me i'm doing wrong. 1.so configure clients ip dc dhcp , join clients dc. (tested , working) 2.then configure rodc on dc password retention policy , set rodc server new server vm. (tested , working) 3.then change rodc primary dns ip (127.0.0.1) , alternate dns dc ip. 4.then point clients use rodc primary dns ip , dc alternate dns ip 5.then turn off dc , test clients authenticate rodc, clients login network unknown , not domain network. @ point have checked clients ip other dhcp has given them because of changing primary dns of clients rodc ip. as can see below w10, w8 , w7 computers , madmin, m1 , m2 clients allowed in password retention policy yet authentication happens @ dc, missing step. could 1 kindly please let me know doing wrong. thank much hi tryllzhuud, >>but ...

BSOD occurs at random intervals

i installed windows 10 on hp elitebook 8560p on top on new samsung evo 840 1tb ssd on weekend , have experience nothing bsod @ random intervals. here recent .dmp file:  https://onedrive.live.com/redir?resid=f7e1afdd99643bde%2112128 i believe related network drivers.  updated lan , wlan latest drivers still experienced weirdness.  wlan off opened ie, blue screen.  lan off , on wlan blue screen less still it.  can shed further light on dump file?  like people cant without laptop stability i've gone windows 8.1.  love hear guys think. wlan: intel centrino advanced-n 6205 lan: intel 82579lm mcp, mcts, mcitp, mcsa.. gunning mcse cloud | please visit www.deploymentshare.com | invite follow me on twitter: @deploymentshare | if solve issue please mark reply answer. still persistent crashing after updating drivers. removed wlan card , swapped another, when checked drivers new card no longer using netwew00.sys  crashes still h...

Automatic certificate enrollment for user certs - Question

hallo, we have windows 2008 r2 domain , on 1 server have installed ad integrated certificate authority (ca). have duplicated user certificate template , granted auto enroll permission domain users. furthermore have created group policy, auto enrolls user certificate @ logon. what works is: when user, has not yet user certificate, logs in @ computer, seconds after login, user certificate automatically enrolled via gpo , saved on computer (local certificate store, certificates). cert stored in user object in active directory. i set option, not request new certificate if there 1 valid registered , available in active directory. i realized, when user logs in on computer, new certificate not requested , enrolled (this ok), available certificate of user not automatically installed on computer itself. (local store). seems, certificate installed on computer, on user logged on, when certificate requested. is there possibility configure, users automatically certificates installed...

DNS not updating

Image
we changed name of our wsus server , name did not replicate across domains. have 1 domain on server 2008 , other on windows 2003 active directory integrated. problem new name not updating 2003 domain. any ideas when try change replication get "the replication scope not set,see "dns zone replication in active directory" in , support. error : name limit local computer network adapter card exceeded.   so you're getting error? last time saw error, indicates a duplicate zone exists. may or may not  be getting event id# 4515 associated issue. read more on how may have happened, how find dupes, , how delete them. using adsi edit resolve conflicting or duplicate ad integrated dns zones http://msmvps.com/blogs/acefekay/archive/2009/09/02/using-adsi-edit-to-resolve-conflicting-or-duplicate-ad-integrated-dns-zones.aspx   ace fekay mvp, mct, mcitp ea, mcts windows 2008 & exchange 2007 & exchange 2010, exchange 2010 enterpr...

New Group Policy not working on 2008 RDS in 2012 Domain - Security Filtering problem?

Image
we have windows 2008 r2 rds in windows 2012r2 domain. want lockdown 2008 rds domain users have added new  security group--named "data collection users". these users "domain users" , login 2008 rds using windows xp sp3 machines run specific application -they not use local desktops anything. added group local rdu group on rds.  not have other users login rds through terminal, including domain admins. so far have done these steps: on dc, created new ou (called terminal servers) and moved rds it. opened group policy on dc, , under gp objects, created new policy called "ts users lockdown". linked policy ou. under security filtering removed authenticated users, added rds computer account (called qs2), added "data collection users" , chose allow "read" , "apply policy" under security filtering, domain admins, chose deny "apply group policy" we edited policy (under computer configu...

Migrate User Profile Disks to new File Server

i'm looking guidance/best practice/advice on moving user profile disk share. goal simple enough, have share upds on stand-alone file server. i'm in process of configuring scale-out file server , migrate upd share cluster once running smoothly. i'm running 2012 r2 rds farm. process simple changing unc path in server manager , migrating data? if so, should copy data change unc path or other way around? on related note, there problems of hosting upd share on dfs? i'm not looking replicate share, ease similar migration in future if necessary replicate or use dfs migration toolkit without needing alter unc path in farm client facing path wouldn't change. idea i'm toying , love feedback. i think in simple/flat scenario, change unc path , wizard automatically setup share on target folder correct root permissions then can robocopy.exe /mir move individual upds on while retaining unique permissions each user regarding scale out file server, can't use sofs...

Pass login credentials into a test-path cmdlet

here scenario. i'm creating sql server job use powershell test if session made remote server before creating one. able create cmdlet test path connects remote shared server on same domain. remote server i'm trying connect on different domain need pass along login credentials. i'm stuck in finding correct way perform this. there way pass login information without prompt? below test-path command want use. if(test-path -path \\ipaddress\folder\subfolder)   {          write-error "remote connection test passed successfully"             } else {write-error "could not connect "\\ipaddress\folder\subfolder" -ea stop} also trying use pscredential achieve unsuccessful , received error. below powershell commands , error message. $securepassword = read-host -prompt "enter password" -assecurestring $username = "domain\user" $credentials = new-object ...

IIS Help

hello use windows server 2003 sp2 iis 6 i wan modify default web page of explorer users in domain. when double click explorer shud open modified webpage instead of going default webpage. please guide me how can it.   check similar iis forum link . you can post iis related queries in iis forum . it might you.   thanks Windows Server  >  Windows Server General Forum

cluster quorum

hi basic conspcet of clusters difference between odd , cluster, types of quorum secanrio used each quorum settings, possible change quorum types after cluster setup? there lots of information available via technet answer broad questions this.  example, http://blogs.msdn.com/b/clustering/archive/2011/05/27/10169261.aspx blog understand how quorum works within cluster.  little dated, concepts same.  new feature of quorum came in windows server 2012 r2 concept of dynamic witness adjusts quorum dynamically - https://technet.microsoft.com/en-us/library/dn265972.aspx#bkmk_witness yes, simple change witness type after cluster has been configured.  can move among no witness, disk witness, or file share witness. . : | : . : | : . tim Windows Server  >  High Availabili...

ADMT 3.1 vbscript : ADMT.Migration object creation permission denied

hello everyone, i'm trying inter forest migration win 2003 ad win 2008 domain environment. try control admt project vbs scripting. i running script on windows server 2008 x64 member server. i've created 2 way trust relationship , managed transfer groups, user accounts , passwords gui admt v3.1 tools, but experiment issue using script. fail on instantiate syntax  set objmigration = createobject("admt.migration") receive following error: permission denied : 'createobject' according error messages it may a permission issue can't figure out can wrong. refer v31migguide.doc microsoft documentation configure migrator account security , permission. ok migration account ok migrate admt mmc snap in. note don't fail instantiate admt.migration object using domain admins account. nat have use domain admins account. thank help scan le gentil i reply myself : problem of user account control (uac). ...