Script to remove htmldb install from database
Is there a script i can run to remove an existing install of htmldb from the database so that i can start with a fresh install
Deepak,
There is no script, but see the instructions in this thread:
How to deinstall HTML DB
Sergio
Similar Messages
-
Hi,
I need VB script which to checks the perticular user in AD and if it exists;that user needs to be removed from the member of perticular group
Ex:- Lets say
I have a user 783562 , I need to search this user in AD to verify user exists or not. If not then I no need to remove the mebership from perticular group
Second scenario:-
If user exists then I need to remove the user membership from the perticular group.I want to do it in automation
Manual Path:-
1.Type dsa.msc in run command of IT session(we using it to connect remote desktop).
2. Select the domain & right click (EX:-corp.ds.xxyyzz.com) and select "Find" to find the user form the domain.
3. Type the user name in the Name field and click on "Find Now" button user name will be displayed in search result.
4. Double click on this user ID and select "Member Of" tab.
5. Select any member of group from the Name section then click on "Remove" button.
6. Finally click on "Apply" and "OK" button.
Kindly help me out to do this by using vb script.
Thanks
RajaUsage: CScript NameOfVBS.vbs //NOLOGO /User:Jane.Doe /GroupDN:CN=Group1,DC=Contoso,DC=com
Option Explicit
On Error Resume Next
Dim str_User
Dim str_GroupDN
Dim obj_Connection
Dim obj_Command
Dim obj_RootDSE
Dim str_DNSDomain
Dim str_Base
Dim str_Filter
Dim str_Attributes
Dim str_Query
Dim obj_RecordSet
Dim obj_Group
Dim str_ADsPath
Dim obj_User
str_User = WScript.Arguments.Named("User")
str_GroupDN = WScript.Arguments.Named("GroupDN")
If Len(Trim(str_User)) > 0 And Len(Trim(str_GroupDN)) > 0 Then
Set obj_Connection = CreateObject("ADODB.Connection")
Set obj_Command = CreateObject("ADODB.Command")
obj_Connection.Provider = "ADsDSOOBject"
obj_Connection.Open "Active Directory Provider"
Set obj_Command.ActiveConnection = obj_Connection
Set obj_RootDSE = GetObject("LDAP://RootDSE")
str_DNSDomain = obj_RootDSE.Get("defaultNamingContext")
str_Base = "<LDAP://" & str_DNSDomain & ">"
str_Filter = "(&(objectCategory=person)(sAMAccountName=" & str_User & "))"
str_Attributes = "cn,ADsPath"
str_Query = str_Base & ";" & str_Filter & ";" & str_Attributes & ";subtree"
obj_Command.CommandText = str_Query
obj_Command.Properties("Page Size") = 1000
obj_Command.Properties("Timeout") = 1
obj_Command.Properties("Cache Results") = False
Set obj_RecordSet = obj_Command.Execute
obj_RecordSet.MoveFirst
If obj_RecordSet.RecordCount = 0 Then
WScript.Echo str_User & " was not found"
Else
Set obj_Group = GetObject("LDAP://" & str_GroupDN)
str_ADsPath = obj_RecordSet.Fields("ADsPath")
Set obj_User = GetObject(str_ADsPath)
obj_Group.Remove(obj_User.AdsPath)
If Err.Number = 0 Then
WScript.Echo str_User & " was removed from group " & str_GroupDN
ElseIf Err.Number = -2147016651 Then
WScript.Echo str_User & " not a member of group " & str_GroupDN
Else
WScript.Echo str_User & " error removing from group " & str_GroupDN
End If
End If
End If -
A simple script that removes older packages from cache dir
Hello all,
I wrote a small bash script that removes packages (from cachedir /var/cache/pacman/pkg), older than the ones available in repositories (eg. if the current version of pacman is 2.6.3, it will remove pacman-2.6.2 from cachedir). It implements the functionality of debian's 'apt-get autoclean'.
Get it from http://www.kegep.tuc.gr/~manolis/archlinux/cleanold.sh.thanks a lot for sharing this
-
Powershell script for removing some users from a particular Site Collection
Hi,
I am looking for a PowerShell script to delete a few users from a particular Site Collection. I am unable to delete them from/_catalogs/Users/simple.aspx page therefore need some other medium to
delete users from the site collection.
My ultimate aim is to have no user profile with "tp_deleted" field's value as 0 in the USERINFO table. Currently there are about 40 odd users with this field's value as 0 and this is affecting my crawling of this content database.Thanks for the reply Alex & eHaze,
I have a content source of root site which crawls all the site collections under it. Out of the 9 site collections, only 8 are getting crawled and 1 doesn't get crawled at all. The error in the crawl logs is
The SharePoint item being crawled returned an error when requesting data from the web service. ( Error from SharePoint site: Value does not fall within the expected range. )
I tried a lot of things, searched over the net and finally found
this which helped me solve the same issue in my development environment. I deleted these users from userInfo table and ran a full crawl. And the issue was fixed.
Now since I cannot delete the users from userInfo table directly from PROD environment, I used .../_catalogs/Users/simple.aspx list
to delete users from this site collection. While some of the users I could delete, quite a few I could not. Clicking on the profile redirected me to the home page rather than the info page of the profile.
This
is why I have to delete these users from the site collection.
Alex - the link you shared, I guess it is for a web application level.
eHaze - the script you shared throws this error:
Get-SPSite : Cannot find an SPSite object with Id or Url: http://dev-apps/divisions/BT. At C:\PowerShell Scripts\DeleteUserFromSiteCollection1.ps1:4 char:19
+ $site = get-spsite <<<< $siteURL
+ CategoryInfo : InvalidData: (Microsoft.Share...SPCmdletGetSite:
SPCmdletGetSite) [Get-SPSite], SPCmdletPipeBindException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletGetSite
You cannot call a method on a null-valued expression.
At C:\PowerShell Scripts\DeleteUserFromSiteCollection1.ps1:9 char:27
+ $site.SiteUsers.Remove <<<< ($LoginName)
+ CategoryInfo : InvalidOperation: (Remove:String) [], RuntimeExc
eption
+ FullyQualifiedErrorId : InvokeMethodOnNull
hope this info helps. -
Looking for Help with Active Directory Script to Remove a User from msExchDelegateListLink
I'm struggling to put together an Active Directory Powershell script that will remove a specific user from the msExchDelegateListLink.
It looks like Set-AdUser would do the trick. I would want to remove a user in the format of
{CN=Wood\, Sandy,OU=Networking,OU=IT,DC=my,DC=domain,DC=com}
Has anyone succeeded in doing this before?
Orange County District AttorneyI use this:
$user = '<user name>'
$userDN = Get-ADUser $user | select -ExpandProperty DistinguishedName
$delegates = Get-ADUser $user -Properties msExchDelegateListBL |
select -ExpandProperty msExchDelegateListBL
foreach ($delegate in $delegates)
Set-ADUser $delegate -Remove @{msExchDelegateListLink = "$UserDN"}
Never quite got around to putting it into a function.
[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " " -
Is it possible to automate/script the removal of workflows from workflow archive?
We don't allow our CQ authors to activate content directly. They must activate their content by executing a custom approval workflow we'd developed as part of our first CQ project. As you can imagine this workflow is run very often. So much so that when it came time to upgrade from CQ v5.4 to CQ v5.5 there were too many for me to purge the workflow archive and leaving all those workflows in place caused the upgrade process to run for a very long time. At the time I was provided with a package for the CQ v5.4 environment that once installed provided a component (/apps/tools/components/purgewf/run.html) that I could then then leverage to kick off a process that given enough time would purge all of the workflows from the workflow archive.
Now that we are on CQ v5.5 I'd like to be proactive and develop a script that I can schedule to execute on a regular basis that would basically do the same thing as that component from CQ v5.4. Does anybody know if there's an easy way to do this with CQ v5.5? Could I simply install the same component that I was given for CQ v5.4 and then leverage curl to kick the process off as I've done that sort of thing before to kick off JMX operations such as runDataStoreGGarbageCollection. This wouldn't be a JMX operation but I'm thinking it migh actually be easier to use curl to kick of something like purgewf/run.html though I'm not really sure what I'm basing that on other than instinct.This has proved very helpful thank you.
Although I've one point of clarification I could still use some help with. The document provided by Sham, HC mentions within that it's possible to clean up workflows that have had a status of RUNNING for more than 1 day but it seems to be saying its neccessary to create a list of those workflow models you want this feature of the purge mechanism to act on. I've looked the Felix configuration over and I can't see that any of the properties there would accept a list of workflow model names and I've tried all of the various modes that are available for the process and none of them do this automatically by assuming any sort of default value for this list. Is this capablity really there? Not that I see the ability to purge RUNNING workflows as critical functionality for the purge process as the number of problem workflows with this status tends to be managable but if yet if there's a way to make it do it in addition to clean out the archive it would be nice. -
Script to remove/untrust certifictate from firefox
Hi,
Is there any mean to remove/untrust a certificate ( yes i'm talking about diginotar ca ) with a script or any other automated way ?
We use Firefox in corporate environment and we are wondering if we can do that automatically
How are the certificates stored ? are they on the sqlite db ?
RegardsSee:
*http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/
There is an update 3.6.21 to disable that root certificate and there will be an update 3.6.22 shortly to restore some certificates that were disabled by accident. -
Best way to remove old data from db?
Hi,
I am looking some ways to keep my database small and remove old data from database and archive it somewhere else. the data may need to be put back to the database in the future. One of the things I am conserned is how to enforce constraints? In other words, when I remove data, all the related pk/fk data should be removed together. Any suggestions will be greatly appreciated.
Thankshope this may help u
concept is : exp/imp & truncate will reclaim the space
method1
do an export and secure the dump(say dump1) for future purpose.
delete the unwanted data.
commit.
now again export the tables ( say dump2).
now do the import(dump2).
/*now this import will reclaim the the unused space.*/
method 2
/* depennded on volume of data */
-- create backup of existing table for future
create table backup_table nologging as select * from original_table;
-- create copy1 of existing table
create table copy_table nologging as select * from original_table;
-- truncate the original table, so that highwater mark is reset.
truncate table original_table;
-- insert data from copy_table into original table
insert /*+ APPEND */ into original_table select * copy_table where(ur conditions for data);
commit all the work.
/* now u have 3 tables
backup_table - with all the data - for future reload
original_table - with unwanted data deleted and space reclaimed.
copy_table - copy of original table.
now u drop the copy_table
drop table copy_table;
regards -
Script to rebuild all installed packages from ABS
I realize pacbuilder is for that, but it doesn't seem to work properly for me. Skipping a lot of packages etc.
Anyway, I've made this very simple script to just rebuild every installed package from core/extra/community. Sorry for the localized echo output, but I think it's all very simple and straightforward to understand.
Edit:
I've improved it a bit, now it should work flawlessly and remember what stuff it has to finish no matter when you ^C out of it. Also it installs all compiled packages, if you want to avoid that, remove -i switch from makepkg.
#!/bin/sh
# user configuration
absdir="/home/mateusz/abs/autobuild"
pkgdir="/home/mateusz/abs/packages"
pkgfile="/home/mateusz/abs/autobuild.list"
# end of user configuration
topabs="/var/abs"
if [ ! -d $absdir ]; then
mkdir -pv $absdir
fi
if [ ! -d $pkgdir ]; then
mkdir -pv $pkgdir
fi
echo "(autobuild) Uaktualnianie bazy abs..."
sudo abs
if [ ! -f $pkgfile ]; then
echo "(autobuild) Tworzę listę pakietów do zbudowania..."
pacman -Qq > $pkgfile
else
echo "(autobuild) Znaleziono poprzedni build."
echo "(autobuild) Jeżeli nie chcesz go wykorzystać, skasuj $pkgfile"
fi
for pkgname in $(cat $pkgfile); do
echo "(autobuild) Szukanie pakietu $pkgname..."
find $topabs -type d -name "$pkgname" -exec cp -R {} $absdir \; 2> /dev/null
if [ -d "$absdir/$pkgname" ]; then
echo "(autobuild) Budowanie pakietu $pkgname..."
cd "$absdir/$pkgname"
makepkg -csir --noconfirm > /dev/null
if [ $? -eq 0 ]; then
echo "(autobuild) Pakiet zbudowany."
cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
mv $pkgfile.tmp $pkgfile
else
echo "(autobuild) Błąd budowania pakietu!"
fi
else
echo "(autobuild) Pakiet nieodnaleziony!"
cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
mv $pkgfile.tmp $pkgfile
fi
done
echo "(autobuild) Linkowanie pakietów do $pkgdir..."
find $absdir -name "*`uname -m`.pkg.tar.gz" -exec ln -v {} $pkgdir \; >/dev/null
echo "(autobuild) Zakończono."
exit 0
Last edited by xaff (2009-05-03 13:47:17)Here is the script translated into English (with a bit of help from Google Translate, as well as grammar cleanup).
#!/bin/sh
# user configuration
absdir="/home/aabbott/abs/autobuild"
pkgdir="/home/aabbott/abs/packages"
pkgfile="/home/aabbott/abs/autobuild.list"
# end of user configuration
topabs="/var/abs"
if [ ! -d $absdir ]; then
mkdir -pv $absdir
fi
if [ ! -d $pkgdir ]; then
mkdir -pv $pkgdir
fi
echo "(autobuild) Updating the ABS database..."
sudo abs
if [ ! -f $pkgfile ]; then
echo "(autobuild) Creating a list of packages to build..."
pacman -Qq > $pkgfile
else
echo "(autobuild) Found a previous build."
echo "(autobuild) If you don't want to use this build, delete ${pkgfile}."
fi
for pkgname in $(cat $pkgfile); do
echo "(autobuild) Searching for $pkgname..."
find $topabs -type d -name "$pkgname" -exec cp -R {} $absdir \; 2> /dev/null
if [ -d "$absdir/$pkgname" ]; then
echo "(autobuild) Building $pkgname..."
cd "$absdir/$pkgname"
makepkg -csir --noconfirm > /dev/null
if [ $? -eq 0 ]; then
echo "(autobuild) $pkgname built."
cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
mv $pkgfile.tmp $pkgfile
else
echo "(autobuild) There was an error when building ${pkgname}!"
fi
else
echo "(autobuild) $pkgname not found!"
cat $pkgfile | grep -vx $pkgname > "$pkgfile.tmp"
mv $pkgfile.tmp $pkgfile
fi
done
echo "(autobuild) Linking to $pkgdir..."
find $absdir -name "*`uname -m`.pkg.tar.gz" -exec ln -v {} $pkgdir \; >/dev/null
echo "(autobuild) Finished."
exit 0 -
[SOLVED] Removing E17 desktop from AUR script
Hello,
I went about today installing Arch with much success and was trying to install the E17 desktop which isn't working; anytime I type startx I get:
xset: bad font path element (#0), possible cause are:
Directory does not exist or has wrong permissions
Director missing fonts.dir
Incorrect font server address or syntax
/home/fox/.xinitrc: line 4: exec: enlightenment_start: not found
xinit looks like this:
xset +fp /usr/share/fonts/local
xset fp rehash
exec enlightenment_start
I was going to remove E17 and reinstall it, but since I used the easy_e17.sh script I don't know how to go about removing it. I got the script from the AUR and used pacman -U to install it, but I can't seem to find a way to undo it. I tried reading easy_e17 --help and googled for a while, but couldn't find any info. Any help is appreciated.
Last edited by NexusX (2011-01-14 22:34:12)Awebb wrote:What's the objection against the package in the repos? Why all the hassle with a non-pacman install?
I had the install from the repo's previously; the install was very smooth and it started just fine but I ran into a bug where if I attempted to remove a gadget from my desktop, my whole system would lock up. I jumped on to irc to see if anyone knew of a workaround when a dev told me that the snapshots in the repo's were about 2 weeks old, and that a large amount of work had been done over that time to that area, and that updating the snapshot would probably fix the issue. I know that at this point, it'd probably be easier to just re-install the package in the repos and avoid doing anything to reproduce the bug, but rather than take the easy way out I'd rather address the problem directly and have an up-to-date e17 install. In the meantime I got XFCE up and running so I have a fully functioning system.
moetunes wrote:Enlightenment_start would be a script to set the environment up and start the window manager, it is important. It looks like the make errors, as they always are, are important and shouldn't be ignored. Try again and pay attention to what happens during make, more then likely it will be dependency problems.
I went back and did another reinstall to see if I could read into those make errors a bit better, especially now that I have XFCE and a web browser to search with. The make errors didn't show up this time around (/shrug) but at the end of the install was a set of 3 instructions instructing the user to add 3 paths to their environment, one of which was the PATH argument listed in the wiki, the other two were for Python and an e17 library. Added them to /etc/profile:
#E17 eas-e17
PATH="$PATH:/opt/e17/bin"
PYTHONPATH=":$PYTHONPATH"
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/e17/lib"
And shazaam, Enlightenment works I saw these instruction in previous installs, but dismissed them since 1 was in the wiki instructions, thinking that was all that was needed. I'm considering appending this finding to the wiki.
The new updated install fixed the problem I was having with e17 before Now, lol, however a new one is showing up that might be worse. Now that I can update the snapshot with a single command though I suppose I'll keep e17 around and play with it as updates happen. Thanks for sticking around, if it wasn't for you insistence that the problem probably was a fudged path variable, I might have missed it. -
Script to remove Install Application and reboot
Hi All,
I got 600 PC's and need to remove one application (got different modules installed) from the PC's and reboot. then i can install the new version .
I have installed this application using GPO. But some related modules installed by manually.
First need to list all the install applications start by the name and remove from the PC ( registry etc)
AsHi,
Based on my research, we can also use PowerShell cmdlets to remove installed applications, here are some related links below for you:
App Installation Cmdlets in Windows PowerShell
http://technet.microsoft.com/en-us/library/hh856045.aspx
Removing Windows 8.1 Built-in Applications
http://blogs.technet.com/b/deploymentguys/archive/2013/10/21/removing-windows-8-1-built-in-applications.aspx
Sideload Apps with DISM
http://technet.microsoft.com/en-us/library/hh852635.aspx#RemoveApps
In addition, here is a scripting forum below if you’d like to get more scripting support:
The Official Scripting Guys Forum
http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
Best Regards,
Amy
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] -
My son and I both have iphones with the same Apple ID. Since I installed iOS this morning I have started receiving all my sons texts and when I send him a text it is delivered to both of us. How can I remove my phone from the joint Apple ID and remove myself from finding out what he is up to during Freshers week!
You have to use a different Apple ID for your son.
Read this note:
iOS 5 & iCloud Tips: Sharing an Apple ID With Your Family
still valid for ios 7 -
Is there a way to remove an app from the list of previously installed apps?
Is there a way to remove an app from the list of previously installed app?
The list that comes up when you click on the Purchased icon when updating apps.
The list is becoming quite large after I installed and tried out a few apps.nvm. I found it.
-
How do I remove a row from the database?
Guys and Gals,
I'm using Studio Edition Version 11.1.1.3.0.
The code below will delete a row from my table, but how do I actually delete the row from the database as well?
DCBindingContainer dcbc = (DCBindingContainer)getBindings();
DCIteratorBinding dcib = dcbc.findIteratorBinding("TipsSelectorIterator");
dcib.removeCurrentRow();
BindingContainer bindings = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("Commit");
Object result = operationBinding.execute();
AdfFacesContext adffacesctx = AdfFacesContext.getCurrentInstance();
adffacesctx.addPartialTarget(this.getQueryTable()); In this post, I believe Frank sums up what I should do: Remove row from af:table
>
The problem in your case is that this removes the row from the iterator but not your business service. EJB exposes explicit methods to remove an entity. A method lime removeEmployees(employee) >expsed on the EJB model must be called.
You can drag and drop the "removeEmployees" method then as a button to your page. Rename the text label to "Remove" or "Delete". In the opened dialog box, point the method argument to the >following EL #{bindings.iteratorName.currentRow.dataProvider}. Next time you press the button, the row is deleted from the iterator and the business service
Huh? So to delete the row, I need to expose a method. But where? Do I do this in the AppModuleImpl so I can expose it to the Client Interface? But then how do I access entities? And what data type is the #{bindings.iteratorName.currentRow.dataProvider}?
If anyone could point me in a general direction, it'd be great.Frank and Shay,
Thank you both for your posts. I'm amazed there's such a great place to get help. Between the forums, ADF code corner, Not Yet Documented ADF Samples, various blogs and tutorials, it's obvious you guys really care about what you do.
On my example, that approach doesn't seem to work. I tried following it like so in one of the video tutorials by Shay: http://blogs.oracle.com/shay/2010/04/doing_two_declarative_operatio.html. Following Shay's approach, in my particular case, deletes only from the table. Perhaps it is due to my iterator / collection setup?
TipsSelector (1 to 1) -> TipsView (1 to *)-> DependentBom -(1 to * Recursive)> RecursiveBom
TipsSelector references the same View Object as TipsView, but it is set as a 1 to 1 relationship so that I can show TipsView on the page one record at a time. This is the same setup as Tuhra2's hierarchy veiwer example. TipsView / DependentBom is a classic parent / child setup. RecursiveBom is DependentBom referencing itself. Think of it as departments within departments within departments etc...
I have dragged TipsSelector's Named Criteria (All Queriable Attributes) onto my page and created an ADF Query with Table. A remove button on the table's toolbar calls the two actions, Delete (from TipsSelector's iterator) and then Commit. I have modified the code slightly from my previous post but the end result seems to be the same.
BindingContainer bindings = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("Delete");
operationBinding.execute();
bindings = getBindings();
operationBinding = bindings.getOperationBinding("Commit");
operationBinding.execute();
AdfFacesContext adffacesctx = AdfFacesContext.getCurrentInstance();
adffacesctx.addPartialTarget(this.getQueryTable());Page Def file
<action id="Commit" InstanceName="AppModuleDataControl"
DataControl="AppModuleDataControl" RequiresUpdateModel="true"
Action="commitTransaction"/>
<action IterBinding="TipsSelectorIterator" id="Delete"
InstanceName="AppModuleDataControl.TipsSelector"
DataControl="AppModuleDataControl" RequiresUpdateModel="false"
Action="removeCurrentRow"/>On ppr of the query table, the row is gone. However, when I press the Search button on the query again, the record reappears.
This is beyond me. Am I somehow deleting from the query results but not the database? -
Update Symbol and Symbol Script without removing from Document library
Is there a way in fireworks CS5.1 to update a symbol and the corresponding symbol script without removing it from the document library like it suggests in the below article
http://www.adobe.com/designcenter/fireworks/articles/frwcs3_richsymbol_print.htmlI have done some more research on this question and there appears to be no way to update a symbol script without removing it from the document library, hopefully this bug will be patched in the near future
Maybe you are looking for
-
Not only that but now that photo stream is turned on, it shows 3 photo stream albums, 1 called my photo stream that i made from my cpu,1 photo library, and 1 called photo stream. when i turn it off, it just deletes the photo stream album and leaves
-
How do i see only contents of a KM folder in a iview?
I made a KM navigation iview but when i see it through the assigned role i see the folder hierarchy on the left and on clicking on that i can see contents of the folder. The problem is I dont want the navigation on the left. I want a breadcrumb(of KM
-
Graphics display problem after upgrade of HTML DB from 1.5 to 1.6
I recently installed HTML DB version 1.5 from Companion CD and tested and everything seemed to work. I immediatley applied the 1.6 version upgrade but now no graphics are shown on the HTML DB ADMIN page. I checked the files from the upgrade $ORACLE_H
-
Calling https web service POST method from ABAP
Hi all, I'm having some problems trying to call a credit card https web service from ABAP on 2004s SP11. I'm not using a proxy server and a call from a test https page on my local machine works fine. The page does not require a certificate. Do I need
-
My phone icon with the contacts and everything is not working?
What can i do to get my phone icon to work so I can call people and get to my contacts and such? Is it locked, and if it is what can i do to fix this.