-
Posts
20 -
Joined
-
Last visited
Profile Information
-
Location
Overland Park, KS
bstjohn's Achievements

Seeker (1/7)
0
Reputation
-
OH! Good catch! The line above has it, but also lists <update>. Not sure I get using /uninstall and update together. Reading.... d'oh! OK, update is what you'd be uninstalling. I was looking at it as a verb. -Barry.
-
@jguinch Interesting. I, too, am working with a fresh install (no upgrade from 7) but I see the /quiet switch. See attached. As for dism, you won't find it there because KB3185614 doesn't have a package name. In powershell, it shows up under get-hotfix, but there's no corresponding command for removing a hotfix, only a package. And you can't remove a package without the package name -- at least not that I've been able to find. -Barry.
-
Alright, just for the sake of argument I'll give this a shot. Not until Monday, though. -Barry.
-
I absolutely do not want to do that. That's what started this whole mess. You think you have automatic updates locked down and Microsoft finds some sneaky way to get one by and break things. Our updates are only supposed to come from a WSUS server. This one Microsoft was able to send directly to machines. If I reset automatic update settings it will just pull the lid off Pandora's Box. -Barry.
-
It doesn't work at all with the /quiet switch, regardless of the KB. Note this: https://social.technet.microsoft.com/Forums/windows/en-US/cdb8140a-aec5-4850-aa82-1ca226aef36a/wusaexe-always-returns-87-with-quiet-switch?forum=win10itprogeneral Thanks. -Barry.
-
I'm running AutoIT v3.3.14.2 on Windows 10 ver 1511. The September Cumulative Update from Microsoft has broken the way some third party credential providers work. You can see more detail here: https://www.novell.com/support/kb/doc.php?id=7018051 So I want to automatically and silently remove this update from all our machines. In Windows 7 I could easily do it with this: wusa.exe /uninstall /kb:3185614 /quiet But apparently Microsoft has taken away the /quiet switch functionality in Windows 10. wusa /? will show that the switch is there, but when trying to use it error 87 (invalid parameter) is returned. So I relented on that point and decided to run wusa without the quiet switch. It pops up a child window that prompts for confirmation before uninstalling the update. Sounds like a perfect job for AutoIT, right? Except I can't get the button to click, either using ControlClick or ControlSend or Send. I can select it by sending the {Alt} key to it and it highlights. But I just can't get it to accept the click or {Enter}. I then tried using Powershell and DISM to remove the package, but this is a hotfix and doesn't have a package name, so I can't use dism /remove-package, either. Does anybody have any other ideas how this can be done silently?
-
Windows 10 RunAs script problem
bstjohn replied to Traskiz's topic in AutoIt General Help and Support
AdamUL- Thanks for the tip about #pragma. That fixed it for me. -Barry. -
Traverse a directory tree using LDAP
bstjohn replied to bstjohn's topic in Developer General Discussion
Thanks. I will look at the code. -
Traverse a directory tree using LDAP
bstjohn replied to bstjohn's topic in Developer General Discussion
And is _AD_Open specific to Active Directory? Like I said in my original post, I want to keep this directory agnostic. I primarily work with Novell eDirectory, but I want my script to be able to work with any LDAP compliant directory service. -
Traverse a directory tree using LDAP
bstjohn replied to bstjohn's topic in Developer General Discussion
Sorry. Perhaps I did not make myself clear. I appreciate your help, but I already understand recursion. What I don't understand is how to switch to a different context in the directory service. -
I'm trying to figure out a way to traverse a directory tree using LDAP. I've read a lot of posts here and mainly they involve using functions designed specifically for Active Directory. I want this to be more generic so it will work whether it's Novell eDirectory, Active Directory, etc. In my case I have both, but I primarily use eDirectory. Here's what I've got so far: $ObjLDAP = ObjGet("LDAP://192.168.1.1:389/O=MyORG") ; Not the real IP address $x=0 For $oObj In $ObjLDAP $x+=1 ConsoleWrite($x & ") cn=[" & $oObj.cn & "]" & @CRLF) $c=0 For $class in $oObj.objectClass $c+=1 ConsoleWrite(@TAB & $c & ") class=[" & $class & "]" & @CRLF) If $class="organizationalUnit" Then ; Switch to this OU and list all object there. ; BUT I DON'T KNOW HOW TO DO THIS YET ; Switch back to parent container when done. EndIf Next ConsoleWrite(@CRLF) Next Exit This works in that it lists all objects in the ORG. Here's a sample of the output. 1) o=[] cn=[] 1) class=[organizationalUnit] 2) class=[ndsLoginProperties] 3) class=[Top] 4) class=[ndsContainerLoginProperties] 2) o=[] cn=[] 1) class=[organizationalUnit] 2) class=[ndsLoginProperties] 3) class=[Top] 4) class=[ndsContainerLoginProperties] 3) o=[] cn=[] 1) class=[organizationalUnit] 2) class=[ndsLoginProperties] 3) class=[Top] 4) class=[ndsContainerLoginProperties] 4) o=[] cn=[] 1) class=[organizationalUnit] 2) class=[ndsLoginProperties] 3) class=[Top] 4) class=[ndsContainerLoginProperties] 5) o=[] cn=[admingroup] 1) class=[Top] 2) class=[groupOfNames] 3) class=[posixGroup] 4) class=[uamPosixGroup] 6) o=[] cn=[apchadmn-Administrators] 1) class=[Top] 2) class=[groupOfNames] 7) o=[] cn=[Everyone] 1) class=[groupOfNames] 2) class=[Top] 8) o=[] cn=[nfradmins] 1) class=[groupOfNames] 2) class=[Top] 9) o=[] cn=[nfrreportusers] 1) class=[groupOfNames] 2) class=[Top] 10) o=[] cn=[Admin] 1) class=[inetOrgPerson] 2) class=[organizationalPerson] 3) class=[Person] 4) class=[Top] 5) class=[ndsLoginProperties] 6) class=[bhPortalConfigRW] 7) class=[bhPortalConfigSecretStore] 8) class=[bhPortalConfig] 9) class=[swareUserAttr] 10) class=[swarePointers] 11) class=[posixAccount] 12) class=[uamPosixUser] 11) o=[] cn=[dnsdhcp] 1) class=[inetOrgPerson] 2) class=[organizationalPerson] 3) class=[Person] 4) class=[ndsLoginProperties] 5) class=[Top] 6) class=[posixAccount] 7) class=[uamPosixUser] 12) o=[] cn=[nfrproxy] 1) class=[inetOrgPerson] 2) class=[organizationalPerson] 3) class=[ndsLoginProperties] 4) class=[Person] 5) class=[Top] 13) o=[] cn=[UNIX Config] 1) class=[uamPosixConfig] 2) class=[Top] 3) class=[uamPosixGidNumberInfo] 4) class=[uamPosixUidNumberInfo] 14) o=[] cn=[Apache Group] 1) class=[apchadmnConfiguration] 2) class=[apchadmnServer] 3) class=[Top] 15) o=[] cn=[apchadmn-Registry] 1) class=[apchadmnConfiguration] 2) class=[apchadmnServer] 3) class=[Top] I can determine that the first four objects are OUs. But how do I switch to those contexts?
-
Any way to make DirGetSize exclude hidden/system files?
bstjohn replied to bstjohn's topic in AutoIt General Help and Support
InunoTaishou- I've found that _FileListToArray() has the inherent ability to filter the system and hidden files: Add one or more of the following to $iReturn to omit files/folders with that attribute + $FLTAR_NOHIDDEN (4) - Hidden files and folders + $FLTAR_NOSYSTEM (8) - System files and folders + $FLTAR_NOLINK (16) - Link/junction folders That makes things all the easier. Thanks for pointing me in the right direction.- 3 replies
-
- dirgetsize
- hidden
-
(and 1 more)
Tagged with:
-
Any way to make DirGetSize exclude hidden/system files?
bstjohn replied to bstjohn's topic in AutoIt General Help and Support
RoboCopy's /XA switch let's you pick which attributes to exclude, so I'm excluding system and hidden. So I'll add another StringInStr for "H" and that'll do it. This puts me on a good track. Thanks for the mental kickstart!- 3 replies
-
- dirgetsize
- hidden
-
(and 1 more)
Tagged with:
-
I'm working on a script to copy a subset of files and folders from a PC to a server. I'm using the extended info from DirGetSize to show how many files and folders and total size that will be copied (copy being done by RoboCopy). Then I run DirGetSize against the destination when the copy is done to compare against the DirGetSize from the copy source so I can know if anything got skipped. I'm finding that a lot of stuff is getting skipped. This lead me to realize that it's because DirGetSize is including files and folders that are hidden and/or system, and I'm excluding these in RoboCopy. Is there anyway to excluded these from DirGetSize? I've been unable to find a UDF as yet, and I'd like to do something a little more elegant than piping the output from DIR into a file and reading that back.
- 3 replies
-
- dirgetsize
- hidden
-
(and 1 more)
Tagged with:
-
bstjohn changed their profile photo
-
bstjohn reacted to a post in a topic: Active Install window does not response any "Send" or ControlClick command
-
bstjohn reacted to a post in a topic: Focus Command
-
Question on AutoIt Firefox script
bstjohn replied to Fl4m3Ph03n1x's topic in AutoIt General Help and Support
Yes, it's a good day each day you learn something new!